From owner-p4-projects@FreeBSD.ORG Fri May 2 10:25:21 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4A3F6106567A; Fri, 2 May 2008 10:25:21 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C6C81065674 for ; Fri, 2 May 2008 10:25:21 +0000 (UTC) (envelope-from gabor@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 03B1C8FC15 for ; Fri, 2 May 2008 10:25:21 +0000 (UTC) (envelope-from gabor@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m42APKPk028103 for ; Fri, 2 May 2008 10:25:20 GMT (envelope-from gabor@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m42APKeD028101 for perforce@freebsd.org; Fri, 2 May 2008 10:25:20 GMT (envelope-from gabor@freebsd.org) Date: Fri, 2 May 2008 10:25:20 GMT Message-Id: <200805021025.m42APKeD028101@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gabor@freebsd.org using -f From: Gabor Kovesdan To: Perforce Change Reviews Cc: Subject: PERFORCE change 141047 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2008 10:25:21 -0000 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, "");