X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-checkout-index.c;h=b097c888a0da044d6dc78c9747eb18e45b46709d;hb=b1bfcae438adb485bb66e2f59396373809e346e6;hp=8d0dbad49ecd61edf8bdadc24e23e52d31d961a3;hpb=bb266cb11842f76712ebff1d8b1bd086dc65337f;p=git.git diff --git a/builtin-checkout-index.c b/builtin-checkout-index.c index 8d0dbad49..b097c888a 100644 --- a/builtin-checkout-index.c +++ b/builtin-checkout-index.c @@ -45,7 +45,7 @@ static int line_termination = '\n'; static int checkout_stage; /* default to checkout stage0 */ static int to_tempfile; -static char topath[4][MAXPATHLEN+1]; +static char topath[4][PATH_MAX + 1]; static struct checkout state; @@ -122,7 +122,7 @@ static int checkout_file(const char *name, int prefix_length) return -1; } -static int checkout_all(const char *prefix, int prefix_length) +static void checkout_all(const char *prefix, int prefix_length) { int i, errs = 0; struct cache_entry* last_ce = NULL; @@ -153,7 +153,6 @@ static int checkout_all(const char *prefix, int prefix_length) * exit with the same code as die(). */ exit(128); - return 0; } static const char checkout_cache_usage[] =