aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-10-23 16:44:30 -0500
committerRob Landley <rob@landley.net>2008-10-23 16:44:30 -0500
commitbdf037ff5e1b933d624ac74c62c5c1eb14464737 (patch)
tree08ff9c1bbe87165fc724403c9254bd02cdefabd2 /lib/lib.h
parentcebe48aebfbb9378715db1ef98e0a8bcd1a39998 (diff)
downloadtoybox-bdf037ff5e1b933d624ac74c62c5c1eb14464737.tar.gz
Upgrade patch to detect hunks that start after a false start.
Imagine a hunk that starts with a blank line, but the site to patch starts with two blank lines. Before we'd read the first blank line, think it was the start of the hunk and buffer it, read the second blank line, notice that it didn't match the second line of the hunk, and discard _both_ buffered lines of context (writing them to the output file) without checking that one of the later context lines might have been the real start of the hunk. Make it re-check the rest of the buffered context for matches each time it discards a line of buffered context.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index cfbeeb3a..70c0c48d 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -27,7 +27,7 @@ struct double_list {
void llist_free(void *list, void (*freeit)(void *data));
void *llist_pop(void *list); // actually void **list, but the compiler's dumb
-void dlist_add(struct double_list **list, char *data);
+struct double_list *dlist_add(struct double_list **list, char *data);
// args.c
void get_optflags(void);