svn commit: trunk/busybox/editors

vodz at busybox.net vodz at busybox.net
Tue Jan 31 09:44:06 UTC 2006


Author: vodz
Date: 2006-01-31 01:44:04 -0800 (Tue, 31 Jan 2006)
New Revision: 13750

Log:
changed strange mix signed<->unsigned

Modified:
   trunk/busybox/editors/patch.c


Changeset:
Modified: trunk/busybox/editors/patch.c
===================================================================
--- trunk/busybox/editors/patch.c	2006-01-31 09:35:45 UTC (rev 13749)
+++ trunk/busybox/editors/patch.c	2006-01-31 09:44:04 UTC (rev 13750)
@@ -26,9 +26,9 @@
 #include <unistd.h>
 #include "busybox.h"
 
-static int copy_lines(FILE *src_stream, FILE *dest_stream, const unsigned int lines_count)
+static unsigned int copy_lines(FILE *src_stream, FILE *dest_stream, const unsigned int lines_count)
 {
-	int i = 0;
+	unsigned int i = 0;
 
 	while (src_stream && (i < lines_count)) {
 		char *line;
@@ -52,7 +52,7 @@
  * returns malloc'ed filename
  */
 
-static char *extract_filename(char *line, unsigned short patch_level)
+static char *extract_filename(char *line, int patch_level)
 {
 	char *filename_start_ptr = line + 4;
 	int i;
@@ -90,7 +90,7 @@
 
 extern int patch_main(int argc, char **argv)
 {
-	unsigned int patch_level = -1;
+	int patch_level = -1;
 	char *patch_line;
 	int ret;
 	FILE *patch_file = NULL;




More information about the busybox-cvs mailing list