pipe_write_header() should return ssize_t, as it returns the return

value from write(), which, at least on UN*X, is ssize_t.

svn path=/trunk/; revision=46779
This commit is contained in:
Guy Harris 2012-12-26 12:14:59 +00:00
parent b467ecfc8b
commit ec5a6f8c5e
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@
#define SP_QUIT 'Q' /* "gracefully" capture quit message (SIGUSR1) */
/* write a single message header to the recipient pipe */
extern size_t
extern ssize_t
pipe_write_header(int pipe_fd, char indicator, int length);
/* write a message to the recipient pipe in the standard format

View File

@ -43,7 +43,7 @@
/* write a single message header to the recipient pipe */
size_t
ssize_t
pipe_write_header(int pipe_fd, char indicator, int length)
{
guchar header[1+3]; /* indicator + 3-byte len */