summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 38f4d13)
raw | patch | inline | side by side (parent: 38f4d13)
author | Rene Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sat, 18 Nov 2006 12:07:09 +0000 (13:07 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 18 Nov 2006 19:40:11 +0000 (11:40 -0800) |
This patch fixes a sparse warning about inaccurate_eof being a
"dubious one-bit signed bitfield", makes three more binary
variables members of this (now unsigned) bitfield and adds a
short comment to indicate the nature of two ternary variables.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
"dubious one-bit signed bitfield", makes three more binary
variables members of this (now unsigned) bitfield and adds a
short comment to indicate the nature of two ternary variables.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-apply.c | patch | blob | history |
diff --git a/builtin-apply.c b/builtin-apply.c
index aad55261fae35fa644bc65aae79fc15aabc38244..61f047fd45383ac64f27bef88e41b56efefdea3b 100644 (file)
--- a/builtin-apply.c
+++ b/builtin-apply.c
struct patch {
char *new_name, *old_name, *def_name;
unsigned int old_mode, new_mode;
- int is_rename, is_copy, is_new, is_delete, is_binary;
+ int is_new, is_delete; /* -1 = unknown, 0 = false, 1 = true */
int rejected;
unsigned long deflate_origlen;
int lines_added, lines_deleted;
int score;
- int inaccurate_eof:1;
+ unsigned int inaccurate_eof:1;
+ unsigned int is_binary:1;
+ unsigned int is_copy:1;
+ unsigned int is_rename:1;
struct fragment *fragments;
char *result;
unsigned long resultsize;