]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Move this struct to a better place
authorRoy Marples <roy@marples.name>
Wed, 4 Mar 2015 11:41:53 +0000 (11:41 +0000)
committerRoy Marples <roy@marples.name>
Wed, 4 Mar 2015 11:41:53 +0000 (11:41 +0000)
dhcpcd.c

index 76357d6efea6d52b6d366497f5a23857cf4ef73a..209d498f391b42d6cfa2d44ab042d695fa9f5b5b 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1299,7 +1299,6 @@ main(int argc, char **argv)
        int sig;
        const char *siga;
 #endif
-       struct timespec ts;
 
        memset(&ctx, 0, sizeof(ctx));
 #ifdef USE_SIGNALS
@@ -1610,6 +1609,8 @@ main(int argc, char **argv)
                        if (sig != SIGHUP)
                                goto exit_failure;
                } else {
+                       struct timespec ts;
+
                        if (sig == SIGHUP || sig == SIGUSR1)
                                goto exit_success;
                        /* Spin until it exits */