From 8cdf33643dc0b21d9ea922a3fdd7f64226c421aa Mon Sep 17 00:00:00 2001 From: Ramsay Allan Jones Date: Thu, 3 Aug 2006 16:48:41 +0100 Subject: Replace some calls to die(usage_str) with usage(usage_str). The only change in behaviour should be having a "usage: " prefix on the output string rather than "fatal: ", and an exit code of 129 rather than 128. Signed-off-by: Ramsay Allan Jones Signed-off-by: Junio C Hamano --- hash-object.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hash-object.c') diff --git a/hash-object.c b/hash-object.c index 43bd93bff..5f89e64c1 100644 --- a/hash-object.c +++ b/hash-object.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) if (!no_more_flags && argv[i][0] == '-') { if (!strcmp(argv[i], "-t")) { if (argc <= ++i) - die(hash_object_usage); + usage(hash_object_usage); type = argv[i]; } else if (!strcmp(argv[i], "-w")) { @@ -66,8 +66,8 @@ int main(int argc, char **argv) hash_stdin(type, write_object); } else - die(hash_object_usage); - } + usage(hash_object_usage); + } else { const char *arg = argv[i]; if (0 <= prefix_length) -- cgit v1.2.1