PERFORCE change 141047 for review
Gabor Kovesdan
gabor at FreeBSD.org
Fri May 2 10:25:21 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=141047
Change 141047 by gabor at gabor_server on 2008/05/02 10:25:07
- Silent 2 warnings
- style(9) nit
Affected files ...
.. //depot/projects/soc2008/gabor_textproc/sort/fields.c#4 edit
.. //depot/projects/soc2008/gabor_textproc/sort/msort.c#4 edit
.. //depot/projects/soc2008/gabor_textproc/sort/sort.c#6 edit
Differences ...
==== //depot/projects/soc2008/gabor_textproc/sort/fields.c#4 (text+ko) ====
@@ -209,7 +209,7 @@
int or_sign, parity = 0;
int expincr = 1, exponent = -1;
int bite, expsign = 1, sign = 1, zeroskip = 0;
- u_char lastvalue, *tline, *C_TENS;
+ u_char lastvalue = 0, *tline, *C_TENS;
u_char *nweights;
if (Rflag)
==== //depot/projects/soc2008/gabor_textproc/sort/msort.c#4 (text+ko) ====
==== //depot/projects/soc2008/gabor_textproc/sort/sort.c#6 (text+ko) ====
@@ -98,8 +98,8 @@
ND += 10; \
if ((p = realloc(fldtab, ND)) == NULL) \
errx(2, "cannot allocate memory"); \
- ftpos = p + (ftpos - fldtab); \
- fldtab = p; \
+ ftpos = (struct field *)p + (ftpos - fldtab); \
+ fldtab = (struct field *)p; \
}
static struct option longopts[] = {
@@ -141,7 +141,7 @@
union f_handle filelist;
FILE *outfp = NULL;
void *p;
- size_t bufsize = BUFSIZE;
+ size_t bufsize = BUFSIZE;
setlocale(LC_ALL, "");
More information about the p4-projects
mailing list