From 85bf44b714ab184907eb448eba389218956d6a51 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 12 Feb 2011 21:55:53 +0100 Subject: hexdump: new usage(), xalloc and err.h stuff New usage help screen and print version switch. Also fixes to exit codes, util linux xmalloc replaced emalloc and every error print is using libc error function. [kzak@redhat.com: - minor changes in formatting and coding style] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak --- text-utils/hexdump.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'text-utils/hexdump.h') diff --git a/text-utils/hexdump.h b/text-utils/hexdump.h index 165399189..3df8629a3 100644 --- a/text-utils/hexdump.h +++ b/text-utils/hexdump.h @@ -81,14 +81,12 @@ extern off_t skip; /* bytes to skip */ enum _vflag { ALL, DUP, FIRST, WAIT }; /* -v values */ extern enum _vflag vflag; -void *emalloc(int); int size(FS *); void add(const char *); void rewrite(FS *); void addfile(char *); void display(void); -void nomem(void); -void usage(void); +void __attribute__((__noreturn__)) usage(FILE *out); void conv_c(PR *, u_char *); void conv_u(PR *, u_char *); int next(char **); -- cgit v1.2.3-55-g7522