Date: Fri, 2 May 2008 10:25:20 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 141047 for review Message-ID: <200805021025.m42APKeD028101@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=141047 Change 141047 by gabor@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, "");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805021025.m42APKeD028101>