summaryrefslogtreecommitdiff
path: root/diffcore.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-08-12 18:07:09 -0700
committerJunio C Hamano <gitster@pobox.com>2010-08-12 18:07:09 -0700
commit642f7108f68ef622b338d27d94a956e32c8567dd (patch)
tree32972655c14bdbd803e3842cb2220b9045632199 /diffcore.h
parent7980e41746bc5de91eea775f9142ce44b1100361 (diff)
parent452c6d506b1a6dcf24d4ceaa592afc39c1c1a60e (diff)
downloadgit-642f7108f68ef622b338d27d94a956e32c8567dd.tar.gz
Merge branch 'maint'
* maint: push: mention "git pull" in error message for non-fast forwards Standardize do { ... } while (0) style t/t7003: replace \t with literal tab in sed expression index-pack: Don't follow replace refs.
Diffstat (limited to 'diffcore.h')
-rw-r--r--diffcore.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/diffcore.h b/diffcore.h
index fed9b151b5..05ebc115a1 100644
--- a/diffcore.h
+++ b/diffcore.h
@@ -98,7 +98,7 @@ struct diff_queue_struct {
(q)->queue = NULL; \
(q)->nr = (q)->alloc = 0; \
(q)->run = 0; \
- } while(0);
+ } while (0)
extern struct diff_queue_struct diff_queued_diff;
extern struct diff_filepair *diff_queue(struct diff_queue_struct *,
@@ -118,9 +118,9 @@ void diff_debug_filespec(struct diff_filespec *, int, const char *);
void diff_debug_filepair(const struct diff_filepair *, int);
void diff_debug_queue(const char *, struct diff_queue_struct *);
#else
-#define diff_debug_filespec(a,b,c) do {} while(0)
-#define diff_debug_filepair(a,b) do {} while(0)
-#define diff_debug_queue(a,b) do {} while(0)
+#define diff_debug_filespec(a,b,c) do { /* nothing */ } while (0)
+#define diff_debug_filepair(a,b) do { /* nothing */ } while (0)
+#define diff_debug_queue(a,b) do { /* nothing */ } while (0)
#endif
extern int diffcore_count_changes(struct diff_filespec *src,