diff options
author | Petr Baudis <pasky@ucw.cz> | 2005-04-13 02:28:48 -0700 |
---|---|---|
committer | Petr Baudis <xpasky@machine> | 2005-04-13 02:28:48 -0700 |
commit | 2de381f919829aec1e35d6c7cc33519295dcd053 (patch) | |
tree | 3f703cd0cd32a4aa9892bda84c664c36e40f7921 /cache.h | |
parent | bdd4da595a265a091a859754a22688f7351cddee (diff) | |
download | git-2de381f919829aec1e35d6c7cc33519295dcd053.tar.gz |
[PATCH] Consolidate the error handling
Now there is error() for "library" errors and die() for fatal "application"
errors. usage() is now used strictly only for usage errors.
Signed-off-by: Petr Baudis <pasky@ucw.cz>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -104,7 +104,10 @@ extern int get_sha1_hex(const char *hex, unsigned char *sha1); extern char *sha1_to_hex(const unsigned char *sha1); /* static buffer result! */ /* General helper functions */ -extern void usage(const char *err, ...); +extern void usage(const char *err); +extern void die(const char *err, ...); +extern int error(const char *err, ...); + extern int cache_name_compare(const char *name1, int len1, const char *name2, int len2); #endif /* CACHE_H */ |