diff options
author | Denys Vlasenko | 2011-09-06 04:31:16 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-09-06 04:31:16 +0200 |
commit | ed058016bf8fc98271de2e58bfb650de9e9d304d (patch) | |
tree | b6554880a7224a86c27429aaebfa6a5b16349b59 /editors | |
parent | cc272b06eefb87030bb85b686abdbc22b5ed1c34 (diff) | |
download | busybox-ed058016bf8fc98271de2e58bfb650de9e9d304d.zip busybox-ed058016bf8fc98271de2e58bfb650de9e9d304d.tar.gz |
Apply post-1.19.1 patches, bump version to 1.19.21_19_2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r-- | editors/patch.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/editors/patch.c b/editors/patch.c index ec5b8e7..1f2a49b 100644 --- a/editors/patch.c +++ b/editors/patch.c @@ -70,8 +70,7 @@ struct double_list { // Free all the elements of a linked list // Call freeit() on each element before freeing it. -static -void dlist_free(struct double_list *list, void (*freeit)(void *data)) +static void dlist_free(struct double_list *list, void (*freeit)(void *data)) { while (list) { void *pop = list; @@ -83,8 +82,7 @@ void dlist_free(struct double_list *list, void (*freeit)(void *data)) } // Add an entry before "list" element in (circular) doubly linked list -static -struct double_list *dlist_add(struct double_list **list, char *data) +static struct double_list *dlist_add(struct double_list **list, char *data) { struct double_list *llist; struct double_list *line = xmalloc(sizeof(*line)); @@ -232,7 +230,7 @@ static int apply_one_hunk(void) else matcheof = 0; if (PATCH_DEBUG) fdprintf(2, "HUNK:%s\n", plist->data); } - matcheof = matcheof < TT.context; + matcheof = !matcheof || matcheof < TT.context; if (PATCH_DEBUG) fdprintf(2,"MATCHEOF=%c\n", matcheof ? 'Y' : 'N'); |