diff --git a/cde/programs/dtcm/dtcm/cm_i18n.c b/cde/programs/dtcm/dtcm/cm_i18n.c index ddd32e059..e41a9e6db 100644 --- a/cde/programs/dtcm/dtcm/cm_i18n.c +++ b/cde/programs/dtcm/dtcm/cm_i18n.c @@ -361,7 +361,6 @@ euc_to_octal(char *srcStr) char * cm_printf(double value, int decimal_pt) { - int sign = 0; int deci_pt = 0; int buf_cnt = 0; int formatted_cnt = 0; @@ -384,16 +383,9 @@ cm_printf(double value, int decimal_pt) free(buf); return (char *)NULL; } -#ifdef SunOS - fconvert(value, decimal_pt, &deci_pt, &sign, buf); -#elif defined(CSRG_BASED) snprintf(buf, decimal_pt, "%f", value); -#else - /* this version, available on the HP and AIX machine is not reentrant. */ - strcpy(buf, fcvt(value, decimal_pt, &deci_pt, &sign)); -#endif - if ( sign ) { + if ( value < 0 ) { strcpy(formatted, "-"); } buf_len = deci_pt + decimal_pt;