PERFORCE change 141045 for review
    Gabor Kovesdan 
    gabor at FreeBSD.org
       
    Fri May  2 10:01:57 UTC 2008
    
    
  
http://perforce.freebsd.org/chv.cgi?CH=141045
Change 141045 by gabor at 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;
    
    
More information about the p4-projects
mailing list