Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 May 2008 10:01:56 GMT
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 141045 for review
Message-ID:  <200805021001.m42A1uko025889@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805021001.m42A1uko025889>