From 2a4321c57456bb92e3e83af93622c5b9acc05a56 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 16 Jun 2010 12:42:28 -0700 Subject: Remove some lint, found by gcc -W etc. * lib/rtapelib.c (do_command, rmt_write__): Use function prototypes instead of old-style decls. * paxlib/error.c (write_fatal): Remove unused and undeclared function. * paxlib/paxlib.h (stat_fatal, pax_exit): Add noreturn attribute. (write_error_details): New decl. * rmt/rmt.c (rmt_read, rmt_write, rmt_reply, rmt_error_message): (rmt_error, xlat_kw, skip_ws, decode_open_flag, close_device): (lseek_device, read_device, write_device, iocop_device, status_device): Declare as static, since they're not exported. Use function prototypes (void) instead of old-style decls (). --- paxlib/error.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'paxlib/error.c') diff --git a/paxlib/error.c b/paxlib/error.c index b4edb68..56903a3 100644 --- a/paxlib/error.c +++ b/paxlib/error.c @@ -352,12 +352,6 @@ write_error_details (char const *name, size_t status, size_t size) name, (unsigned long int) status, (unsigned long int) size)); } -void -write_fatal (char const *name) -{ - call_arg_fatal ("write", name); -} - void chdir_fatal (char const *name) { -- cgit v1.2.1