diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-06-16 12:42:28 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-06-16 12:42:28 -0700 |
commit | 2a4321c57456bb92e3e83af93622c5b9acc05a56 (patch) | |
tree | f8a94e8317d2fb92f43248030e51bc1b9e624387 /paxlib/error.c | |
parent | 86d89d36fd3059f776b8ecb3ce8c9950acb17b45 (diff) | |
download | paxutils-2a4321c57456bb92e3e83af93622c5b9acc05a56.tar.gz |
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 ().
Diffstat (limited to 'paxlib/error.c')
-rw-r--r-- | paxlib/error.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/paxlib/error.c b/paxlib/error.c index b4edb68..56903a3 100644 --- a/paxlib/error.c +++ b/paxlib/error.c @@ -353,12 +353,6 @@ write_error_details (char const *name, size_t status, size_t size) } void -write_fatal (char const *name) -{ - call_arg_fatal ("write", name); -} - -void chdir_fatal (char const *name) { call_arg_fatal ("chdir", name); |