diff options
Diffstat (limited to 'paxlib/rtape.c')
-rw-r--r-- | paxlib/rtape.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/paxlib/rtape.c b/paxlib/rtape.c index 1089d92..2cd0c36 100644 --- a/paxlib/rtape.c +++ b/paxlib/rtape.c @@ -1,7 +1,6 @@ /* Functions for communicating with a remote tape drive. - Copyright (C) 1988, 1992, 1994, 1996, 1997, 1999, 2000, 2001, 2004, - 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright 1988-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -65,10 +64,6 @@ /* FIXME: Size of buffers for reading and writing commands to rmt. */ #define COMMAND_BUFFER_SIZE 64 -#ifndef RETSIGTYPE -# define RETSIGTYPE void -#endif - /* FIXME: Maximum number of simultaneous remote tape connections. */ #define MAXUNIT 4 @@ -109,7 +104,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); + void (*pipe_handler) () = signal (SIGPIPE, SIG_IGN); ssize_t written = full_write (WRITE_SIDE (handle), buffer, length); signal (SIGPIPE, pipe_handler); @@ -627,7 +622,7 @@ size_t rmt_write (int handle, char *buffer, size_t length) { char command_buffer[COMMAND_BUFFER_SIZE]; - RETSIGTYPE (*pipe_handler) (); + void (*pipe_handler) (); size_t written; sprintf (command_buffer, "W%lu\n", (unsigned long) length); |