]> granicus.if.org Git - sudo/commitdiff
include error.h
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 16 Aug 2009 15:12:16 +0000 (15:12 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 16 Aug 2009 15:12:16 +0000 (15:12 +0000)
first arg to nanotime is const

sudoreplay.c

index d317ad4f85f83b6ca9d975985079e1c88f4e8aef..2367e8ae565e1a46f7c82dc2c7f32d543478327b 100644 (file)
@@ -61,6 +61,7 @@
 #include <pathnames.h>
 
 #include "compat.h"
+#include "error.h"
 
 #ifndef lint
 __unused static const char rcsid[] = "$Sudo$";
@@ -179,7 +180,7 @@ main(argc, argv)
 #ifndef HAVE_NANOSLEEP
 static int
 nanosleep(ts, rts)
-    struct timespec *ts;
+    const struct timespec *ts;
     struct timespec *rts;
 {
     struct timeval timeout, endtime, now;