diff options
author | "Vladimir N. Oleynik" | 2006-01-31 09:44:04 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" | 2006-01-31 09:44:04 +0000 |
commit | dfe6e74157e98a696b60c586a4ed0a35b9362838 (patch) | |
tree | 8d2534e1fc0f301ce26bbd0e469f03a642c3e4a2 | |
parent | dd14ca082a6e91432993e4d6f31ae75bed58df6e (diff) | |
download | busybox-dfe6e74157e98a696b60c586a4ed0a35b9362838.zip busybox-dfe6e74157e98a696b60c586a4ed0a35b9362838.tar.gz |
changed strange mix signed<->unsigned
-rw-r--r-- | editors/patch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/patch.c b/editors/patch.c index d406a62..2248b61 100644 --- a/editors/patch.c +++ b/editors/patch.c @@ -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 @@ static int copy_lines(FILE *src_stream, FILE *dest_stream, const unsigned int li * 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 @@ static int file_doesnt_exist(const char *filename) 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; |