From owner-p4-projects@FreeBSD.ORG Fri May 2 10:01:57 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3ECCC1065675; Fri, 2 May 2008 10:01:57 +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 F40011065673 for ; Fri, 2 May 2008 10:01:56 +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 EB4418FC13 for ; Fri, 2 May 2008 10:01:56 +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 m42A1uUL025891 for ; Fri, 2 May 2008 10:01:56 GMT (envelope-from gabor@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m42A1uko025889 for perforce@freebsd.org; Fri, 2 May 2008 10:01:56 GMT (envelope-from gabor@freebsd.org) Date: Fri, 2 May 2008 10:01:56 GMT Message-Id: <200805021001.m42A1uko025889@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 141045 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:01:57 -0000 http://perforce.freebsd.org/chv.cgi?CH=141045 Change 141045 by gabor@gabor_server on 2008/05/02 10:01:12 - Fix a little bug in emalloc - Drop unsigned modifier of char, it's unnecessary - Silent warnings Affected files ... .. //depot/projects/soc2008/gabor_textproc/diff/diff.c#3 edit .. //depot/projects/soc2008/gabor_textproc/diff/diffreg.c#3 edit Differences ... ==== //depot/projects/soc2008/gabor_textproc/diff/diff.c#3 (text+ko) ==== @@ -316,7 +316,7 @@ { void *p; - if (p == 0) + if (n == 0) errx(2, NULL); if ((p = malloc(n)) == NULL) ==== //depot/projects/soc2008/gabor_textproc/diff/diffreg.c#3 (text+ko) ==== @@ -1280,7 +1280,7 @@ static int asciifile(FILE *f) { - unsigned char buf[BUFSIZ]; + char buf[BUFSIZ]; int i, cnt; if (aflag || f == NULL) @@ -1299,7 +1299,7 @@ static char * match_function(const long *f, int pos, FILE *file) { - unsigned char buf[FUNCTION_CONTEXT_SIZE]; + char buf[FUNCTION_CONTEXT_SIZE]; size_t nc; int last = lastline; char *state = NULL;