]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/state.c
Fix a number of the easier compile warnings: unused variables,
[nfs-utils.git] / utils / statd / state.c
index c24198569a260bddd7d25eddeecceec2a177fd88..f46dae5d7e343ef1ac94b07bec72a7f056219fa8 100644 (file)
@@ -6,7 +6,10 @@
  * NSM for Linux.
  */
 
  * NSM for Linux.
  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <dirent.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <dirent.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -25,7 +28,6 @@ void
 change_state (void)
 {
   int fd, size;
 change_state (void)
 {
   int fd, size;
-  extern short int restart;
   
   if ((fd = open (SM_STAT_PATH, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR)) == -1)
     die ("open (%s): %s", SM_STAT_PATH, strerror (errno));
   
   if ((fd = open (SM_STAT_PATH, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR)) == -1)
     die ("open (%s): %s", SM_STAT_PATH, strerror (errno));