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:
parent
b467ecfc8b
commit
ec5a6f8c5e
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue