@@ -224,7 +224,7 @@ int safe_strlen(char *string, int max)
224224CMS_STATUS CMS_ASCII_UPDATER::update (bool &x)
225225{
226226 /* Check to see if the pointers are in the proper range. */
227- if (-1 == check_pointer (( char *) &x , sizeof (bool ))) {
227+ if (-1 == check_pointer (reinterpret_cast < char *>(&x) , sizeof (bool ))) {
228228 return (CMS_UPDATE_ERROR);
229229 }
230230
@@ -318,7 +318,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(uint8_t *x, unsigned int len)
318318CMS_STATUS CMS_ASCII_UPDATER::update (int16_t &x)
319319{
320320 /* Check to see if the pointers are in the proper range. */
321- if (-1 == check_pointer (( char *) &x , sizeof (int16_t ))) {
321+ if (-1 == check_pointer (reinterpret_cast < char *>(&x) , sizeof (int16_t ))) {
322322 return (status = CMS_UPDATE_ERROR);
323323 }
324324
@@ -363,7 +363,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(int16_t &x)
363363CMS_STATUS CMS_ASCII_UPDATER::update (int16_t *x, unsigned int len)
364364{
365365 /* Check to see if the pointers are in the proper range. */
366- if (-1 == check_pointer (( char *) x , sizeof (int16_t ) * len)) {
366+ if (-1 == check_pointer (reinterpret_cast < char *>(x) , sizeof (int16_t ) * len)) {
367367 return (status = CMS_UPDATE_ERROR);
368368 }
369369
@@ -378,7 +378,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(int16_t *x, unsigned int len)
378378CMS_STATUS CMS_ASCII_UPDATER::update (uint16_t &x)
379379{
380380 /* Check to see if the pointers are in the proper range. */
381- if (-1 == check_pointer (( char *) &x , sizeof (uint16_t ))) {
381+ if (-1 == check_pointer (reinterpret_cast < char *>(&x) , sizeof (uint16_t ))) {
382382 return (status = CMS_UPDATE_ERROR);
383383 }
384384
@@ -423,7 +423,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(uint16_t &x)
423423CMS_STATUS CMS_ASCII_UPDATER::update (uint16_t *x, unsigned int len)
424424{
425425 /* Check to see if the pointers are in the proper range. */
426- if (-1 == check_pointer (( char *) x , sizeof (uint16_t ) * len)) {
426+ if (-1 == check_pointer (reinterpret_cast < char *>(x) , sizeof (uint16_t ) * len)) {
427427 return (status = CMS_UPDATE_ERROR);
428428 }
429429
@@ -440,7 +440,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(uint16_t *x, unsigned int len)
440440CMS_STATUS CMS_ASCII_UPDATER::update (int32_t &x)
441441{
442442 /* Check to see if the pointers are in the proper range. */
443- if (-1 == check_pointer (( char *) &x , sizeof (int32_t ))) {
443+ if (-1 == check_pointer (reinterpret_cast < char *>(&x) , sizeof (int32_t ))) {
444444 return (status = CMS_UPDATE_ERROR);
445445 }
446446
@@ -491,7 +491,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(int32_t &x)
491491CMS_STATUS CMS_ASCII_UPDATER::update (int32_t *x, unsigned int len)
492492{
493493 /* Check to see if the pointers are in the proper range. */
494- if (-1 == check_pointer (( char *) x , sizeof (int32_t ) * len)) {
494+ if (-1 == check_pointer (reinterpret_cast < char *>(x) , sizeof (int32_t ) * len)) {
495495 return (status = CMS_UPDATE_ERROR);
496496 }
497497
@@ -506,7 +506,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(int32_t *x, unsigned int len)
506506CMS_STATUS CMS_ASCII_UPDATER::update (uint32_t &x)
507507{
508508 /* Check to see if the pointers are in the proper range. */
509- if (-1 == check_pointer (( char *) &x , sizeof (uint32_t ))) {
509+ if (-1 == check_pointer (reinterpret_cast < char *>(&x) , sizeof (uint32_t ))) {
510510 return (status = CMS_UPDATE_ERROR);
511511 }
512512
@@ -557,7 +557,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(uint32_t &x)
557557CMS_STATUS CMS_ASCII_UPDATER::update (uint32_t *x, unsigned int len)
558558{
559559 /* Check to see if the pointers are in the proper range. */
560- if (-1 == check_pointer (( char *) x , sizeof (uint32_t ) * len)) {
560+ if (-1 == check_pointer (reinterpret_cast < char *>(x) , sizeof (uint32_t ) * len)) {
561561 return (status = CMS_UPDATE_ERROR);
562562 }
563563
@@ -574,7 +574,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(uint32_t *x, unsigned int len)
574574CMS_STATUS CMS_ASCII_UPDATER::update (int64_t &x)
575575{
576576 /* Check to see if the pointers are in the proper range. */
577- if (-1 == check_pointer (( char *) &x , sizeof (int64_t ))) {
577+ if (-1 == check_pointer (reinterpret_cast < char *>(&x) , sizeof (int64_t ))) {
578578 return (status = CMS_UPDATE_ERROR);
579579 }
580580
@@ -612,7 +612,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(int64_t &x)
612612CMS_STATUS CMS_ASCII_UPDATER::update (int64_t *x, unsigned int len)
613613{
614614 /* Check to see if the pointers are in the proper range. */
615- if (-1 == check_pointer (( char *) x , sizeof (int64_t ) * len)) {
615+ if (-1 == check_pointer (reinterpret_cast < char *>(x) , sizeof (int64_t ) * len)) {
616616 return (status = CMS_UPDATE_ERROR);
617617 }
618618
@@ -627,7 +627,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(int64_t *x, unsigned int len)
627627CMS_STATUS CMS_ASCII_UPDATER::update (uint64_t &x)
628628{
629629 /* Check to see if the pointers are in the proper range. */
630- if (-1 == check_pointer (( char *) &x , sizeof (uint64_t ))) {
630+ if (-1 == check_pointer (reinterpret_cast < char *>(&x) , sizeof (uint64_t ))) {
631631 return (status = CMS_UPDATE_ERROR);
632632 }
633633
@@ -666,7 +666,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(uint64_t &x)
666666CMS_STATUS CMS_ASCII_UPDATER::update (uint64_t *x, unsigned int len)
667667{
668668 /* Check to see if the pointers are in the proper range. */
669- if (-1 == check_pointer (( char *) x , sizeof (uint64_t ) * len)) {
669+ if (-1 == check_pointer (reinterpret_cast < char *>(x) , sizeof (uint64_t ) * len)) {
670670 return (status = CMS_UPDATE_ERROR);
671671 }
672672
@@ -683,7 +683,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(uint64_t *x, unsigned int len)
683683CMS_STATUS CMS_ASCII_UPDATER::update (float &x)
684684{
685685 /* Check to see if the pointers are in the proper range. */
686- if (-1 == check_pointer (( char *) &x , sizeof (float ))) {
686+ if (-1 == check_pointer (reinterpret_cast < char *>(&x) , sizeof (float ))) {
687687 return (status = CMS_UPDATE_ERROR);
688688 }
689689
@@ -728,7 +728,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(float &x)
728728CMS_STATUS CMS_ASCII_UPDATER::update (float *x, unsigned int len)
729729{
730730 /* Check to see if the pointers are in the proper range. */
731- if (-1 == check_pointer (( char *) x , sizeof (float ) * len)) {
731+ if (-1 == check_pointer (reinterpret_cast < char *>(x) , sizeof (float ) * len)) {
732732 return (status = CMS_UPDATE_ERROR);
733733 }
734734
@@ -745,7 +745,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(float *x, unsigned int len)
745745CMS_STATUS CMS_ASCII_UPDATER::update (double &x)
746746{
747747 /* Check to see if the pointers are in the proper range. */
748- if (-1 == check_pointer (( char *) &x , sizeof (double ))) {
748+ if (-1 == check_pointer (reinterpret_cast < char *>(&x) , sizeof (double ))) {
749749 return (status = CMS_UPDATE_ERROR);
750750 }
751751
@@ -783,7 +783,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(double &x)
783783CMS_STATUS CMS_ASCII_UPDATER::update (double *x, unsigned int len)
784784{
785785 /* Check to see if the pointers are in the proper range. */
786- if (-1 == check_pointer (( char *) x , sizeof (double ) * len)) {
786+ if (-1 == check_pointer (reinterpret_cast < char *>(x) , sizeof (double ) * len)) {
787787 return (status = CMS_UPDATE_ERROR);
788788 }
789789
@@ -800,7 +800,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(double *x, unsigned int len)
800800CMS_STATUS CMS_ASCII_UPDATER::update (long double &x)
801801{
802802 /* Check to see if the pointers are in the proper range. */
803- if (-1 == check_pointer (( char *) &x , sizeof (long double ))) {
803+ if (-1 == check_pointer (reinterpret_cast < char *>(&x) , sizeof (long double ))) {
804804 return (status = CMS_UPDATE_ERROR);
805805 }
806806
@@ -838,7 +838,7 @@ CMS_STATUS CMS_ASCII_UPDATER::update(long double &x)
838838CMS_STATUS CMS_ASCII_UPDATER::update (long double *x, unsigned int len)
839839{
840840 /* Check to see if the pointers are in the proper range. */
841- if (-1 == check_pointer (( char *) x , sizeof (long double ) * len)) {
841+ if (-1 == check_pointer (reinterpret_cast < char *>(x) , sizeof (long double ) * len)) {
842842 return (status = CMS_UPDATE_ERROR);
843843 }
844844
0 commit comments