summaryrefslogtreecommitdiff
path: root/exec_cmd.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-09 11:58:05 -0800
committerJunio C Hamano <junkio@cox.net>2006-03-09 11:58:05 -0800
commitb4f2a6ac9263d6e9bf3bf9c8abe607cd6def0ee8 (patch)
tree7956fa207bb2aa7eaee0290c2f8cbf11b1feaf6e /exec_cmd.c
parent7bd7f2804d84258a5cd1e76c610496f6beaa4cdf (diff)
downloadgit-b4f2a6ac9263d6e9bf3bf9c8abe607cd6def0ee8.tar.gz
Use #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'exec_cmd.c')
-rw-r--r--exec_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec_cmd.c b/exec_cmd.c
index 96cc2123b6..590e738969 100644
--- a/exec_cmd.c
+++ b/exec_cmd.c
@@ -37,7 +37,7 @@ int execv_git_cmd(const char **argv)
getenv("GIT_EXEC_PATH"),
builtin_exec_path };
- for (i = 0; i < sizeof(paths)/sizeof(paths[0]); ++i) {
+ for (i = 0; i < ARRAY_SIZE(paths); ++i) {
const char *exec_dir = paths[i];
const char *tmp;