diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-12-26 12:14:59 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-12-26 12:14:59 +0000 |
commit | ec5a6f8c5e93048f1b8d805d6858b0c8b49a30c8 (patch) | |
tree | c1a352c4f479768108474ca27a491ef87f95c473 | |
parent | b467ecfc8b5920e9676a7df034c46b0441b1cf0b (diff) |
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
-rw-r--r-- | sync_pipe.h | 2 | ||||
-rw-r--r-- | sync_pipe_write.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sync_pipe.h b/sync_pipe.h index e35ee99dce..1be428db98 100644 --- a/sync_pipe.h +++ b/sync_pipe.h @@ -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 diff --git a/sync_pipe_write.c b/sync_pipe_write.c index 40bb2c1ce8..b18adedd19 100644 --- a/sync_pipe_write.c +++ b/sync_pipe_write.c @@ -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 */ |