diff options
author | Gerald Carter <jerry@samba.org> | 2003-05-14 04:39:55 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-05-14 04:39:55 +0000 |
commit | 849e0d68951a4500256d6e9a5573ded242207df5 (patch) | |
tree | e0b6d83b6367193474f530da3c68f03f2ee0a22e /source3/lib | |
parent | 65bc416e6590df8808f9eaf5c1f65186c57130b1 (diff) | |
download | samba-849e0d68951a4500256d6e9a5573ded242207df5.tar.gz samba-849e0d68951a4500256d6e9a5573ded242207df5.tar.bz2 samba-849e0d68951a4500256d6e9a5573ded242207df5.zip |
syncing LDAP schema changes with Samba_3_0
(This used to be commit a1326ea34831bf49942f7bcb954999091c3ea820)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/snprintf.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/lib/snprintf.c b/source3/lib/snprintf.c index 062521e726..9b9ceb60ca 100644 --- a/source3/lib/snprintf.c +++ b/source3/lib/snprintf.c @@ -665,7 +665,7 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen, int padlen = 0; /* amount to pad */ int zpadlen = 0; int caps = 0; - int index; + int idx; double intpart; double fracpart; double temp; @@ -724,11 +724,11 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen, do { temp = intpart*0.1; my_modf(temp, &intpart); - index = (int) ((temp -intpart +0.05)* 10.0); - /* index = (int) (((double)(temp*0.1) -intpart +0.05) *10.0); */ - /* printf ("%llf, %f, %x\n", temp, intpart, index); */ + idx = (int) ((temp -intpart +0.05)* 10.0); + /* idx = (int) (((double)(temp*0.1) -intpart +0.05) *10.0); */ + /* printf ("%llf, %f, %x\n", temp, intpart, idx); */ iconvert[iplace++] = - (caps? "0123456789ABCDEF":"0123456789abcdef")[index]; + (caps? "0123456789ABCDEF":"0123456789abcdef")[idx]; } while (intpart && (iplace < 311)); if (iplace == 311) iplace--; iconvert[iplace] = 0; @@ -739,11 +739,11 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen, do { temp = fracpart*0.1; my_modf(temp, &fracpart); - index = (int) ((temp -fracpart +0.05)* 10.0); - /* index = (int) ((((temp/10) -fracpart) +0.05) *10); */ - /* printf ("%lf, %lf, %ld\n", temp, fracpart, index); */ + idx = (int) ((temp -fracpart +0.05)* 10.0); + /* idx = (int) ((((temp/10) -fracpart) +0.05) *10); */ + /* printf ("%lf, %lf, %ld\n", temp, fracpart, idx ); */ fconvert[fplace++] = - (caps? "0123456789ABCDEF":"0123456789abcdef")[index]; + (caps? "0123456789ABCDEF":"0123456789abcdef")[idx]; } while(fracpart && (fplace < 311)); if (fplace == 311) fplace--; } |