3
0
forked from pool/systemtap
systemtap/systemtap-compile-warning-fixes.diff

17 lines
579 B
Diff

--- runtime/staprun/mainloop.c-dist 2007-05-22 17:14:19.000000000 +0200
+++ runtime/staprun/mainloop.c 2007-05-22 17:15:32.000000000 +0200
@@ -21,9 +21,10 @@ int use_old_transport = 0;
void fatal_handler (int signum)
{
char *str = strsignal(signum);
- (void)write (STDERR_FILENO, ERR_MSG, sizeof(ERR_MSG));
- (void)write (STDERR_FILENO, str, strlen(str));
- (void)write (STDERR_FILENO, "\n", 1);
+ ssize_t err;
+ err = write (STDERR_FILENO, ERR_MSG, sizeof(ERR_MSG));
+ err = write (STDERR_FILENO, str, strlen(str));
+ err = write (STDERR_FILENO, "\n", 1);
_exit(-1);
}