]> granicus.if.org Git - psmisc/commitdiff
Moved sigalarm function in fuser
authorCraig Small <csmall@users.sourceforge.net>
Wed, 25 Jan 2012 10:44:57 +0000 (21:44 +1100)
committerCraig Small <csmall@users.sourceforge.net>
Wed, 25 Jan 2012 10:44:57 +0000 (21:44 +1100)
The sigalarm function was outside an #ifdef which meant it was defined
but not used with certain configure parameters.

Thanks to sami Kerola for pointing out the problem.

src/fuser.c

index d5a50d8ef6c09143b240b2a7d53d0a874b1dcd49..ed966d2bf8e8b474b6e87a91ef4579d534290ece 100644 (file)
@@ -1785,6 +1785,7 @@ scan_swaps(struct names *names_head, struct inode_list *ino_head,
  */
 static sigjmp_buf jenv;
 
+#ifdef HAVE_TIMEOUT_STAT
 static void
 sigalarm(int sig)
 {
@@ -1792,7 +1793,6 @@ sigalarm(int sig)
                siglongjmp(jenv, 1);
 }
 
-#ifdef HAVE_TIMEOUT_STAT
 static int
 timeout(stat_t func, const char *path, struct stat *buf, unsigned int seconds)
 {