summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2010-06-16 12:42:28 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2010-06-16 12:42:28 -0700
commit2a4321c57456bb92e3e83af93622c5b9acc05a56 (patch)
treef8a94e8317d2fb92f43248030e51bc1b9e624387 /lib
parent86d89d36fd3059f776b8ecb3ce8c9950acb17b45 (diff)
downloadpaxutils-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 'lib')
-rw-r--r--lib/rtapelib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rtapelib.c b/lib/rtapelib.c
index cb645db..3aee428 100644
--- a/lib/rtapelib.c
+++ b/lib/rtapelib.c
@@ -121,7 +121,7 @@ do_command (int handle, const char *buffer)
/* Save the current pipe handler and try to make the request. */
size_t length = strlen (buffer);
- RETSIGTYPE (*pipe_handler) () = signal (SIGPIPE, SIG_IGN);
+ RETSIGTYPE (*pipe_handler) (int) = signal (SIGPIPE, SIG_IGN);
ssize_t written = full_write (WRITE_SIDE (handle), buffer, length);
signal (SIGPIPE, pipe_handler);
@@ -428,7 +428,7 @@ rmt_open__ (const char *file_name, int open_mode, int bias,
if (gethostbyname (remote_host) == NULL)
error (EXIT_ON_EXEC_ERROR, 0, _("Cannot connect to %s: resolve failed"),
remote_host);
-
+
if (remote_user && *remote_user == '\0')
remote_user = 0;
@@ -596,7 +596,7 @@ size_t
rmt_write__ (int handle, char *buffer, size_t length)
{
char command_buffer[COMMAND_BUFFER_SIZE];
- RETSIGTYPE (*pipe_handler) ();
+ RETSIGTYPE (*pipe_handler) (int);
size_t written;
sprintf (command_buffer, "W%lu\n", (unsigned long) length);
@@ -715,7 +715,7 @@ rmt_ioctl__ (int handle, int operation, char *argument)
errno = EOVERFLOW;
return -1;
}
-
+
for (; status > 0; status -= counter, argument += counter)
{
counter = safe_read (READ_SIDE (handle), argument, status);