]> granicus.if.org Git - sudo/commitdiff
The result of writev() is never checked so just cast to NULL.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 11 Jan 2012 18:09:09 +0000 (13:09 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 11 Jan 2012 18:09:09 +0000 (13:09 -0500)
common/sudo_debug.c

index ea38d2448467f6f0ca428a45372299ac28fd55c6..5eed4bffd7d37624befb61358bbd535cf1b43492 100644 (file)
@@ -247,7 +247,6 @@ sudo_debug_write(const char *str, int len)
 {
     char *timestr;
     time_t now;
-    ssize_t n;
     struct iovec iov[5];
     int iovcnt = 4;
 
@@ -296,7 +295,7 @@ sudo_debug_write(const char *str, int len)
     iov[0].iov_len = 16;
 
     /* Write message in a single syscall */
-    n = writev(sudo_debug_fd, iov, iovcnt);
+    (void) writev(sudo_debug_fd, iov, iovcnt);
 }
 
 void