Skip to content

Commit

Permalink
pipe_write_header() should return ssize_t, as it returns the return
Browse files Browse the repository at this point in the history
value from write(), which, at least on UN*X, is ssize_t.

svn path=/trunk/; revision=46779
  • Loading branch information
guyharris committed Dec 26, 2012
1 parent b467ecf commit ec5a6f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sync_pipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sync_pipe_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit ec5a6f8

Please sign in to comment.