]> err.no Git - varnish/commitdiff
Style cleanup.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 5 Aug 2006 12:24:25 +0000 (12:24 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 5 Aug 2006 12:24:25 +0000 (12:24 +0000)
remove two unused variables.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@666 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_child.c

index 48a4c3ccab0a2aa93a91d9a7d5eae6610c63f9a8..8d913aa3196c94b034ce5a662508880f26de3f78 100644 (file)
@@ -30,8 +30,6 @@ pid_t         child_pid = -1;
 
 static int             child_fds[2];
 static unsigned        child_should_run;
-static unsigned                child_ticker;
-static unsigned                dstarts;
 
 struct evbase          *mgt_evb;
 
@@ -142,7 +140,6 @@ start_child(void)
                free(p);
                exit (2);
        }
-       child_ticker = 0;
 }
 
 /*--------------------------------------------------------------------*/
@@ -232,7 +229,7 @@ void
 mgt_run(int dflag)
 {
        struct sigaction sac;
-       struct ev *ev_sigchld, *ev_sigint;
+       struct ev *e;
 
        mgt_pid = getpid();
 
@@ -242,19 +239,20 @@ mgt_run(int dflag)
        if (dflag)
                mgt_cli_setup(0, 1, 1);
 
-       ev_sigint = ev_new();
-       assert(ev_sigint != NULL);
-       ev_sigint->sig = SIGINT;
-       ev_sigint->callback = mgt_sigint;
-       ev_sigint->name = "mgt_sigint";
-       AZ(ev_add(mgt_evb, ev_sigint));
+       e = ev_new();
+       assert(e != NULL);
+       e->sig = SIGINT;
+       e->callback = mgt_sigint;
+       e->name = "mgt_sigint";
+       AZ(ev_add(mgt_evb, e));
 
-       ev_sigchld = ev_new();
-       ev_sigchld->sig = SIGCHLD;
-       ev_sigchld->sig_flags = SA_NOCLDSTOP;
-       ev_sigchld->callback = mgt_sigchld;
-       ev_sigchld->name = "mgt_sigchild";
-       AZ(ev_add(mgt_evb, ev_sigchld));
+       e = ev_new();
+       assert(e != NULL);
+       e->sig = SIGCHLD;
+       e->sig_flags = SA_NOCLDSTOP;
+       e->callback = mgt_sigchld;
+       e->name = "mgt_sigchild";
+       AZ(ev_add(mgt_evb, e));
 
        setproctitle("Varnish-Mgr");
 
@@ -285,6 +283,5 @@ mcf_server_startstop(struct cli *cli, char **av, void *priv)
                stop_child();
                return;
        } 
-       dstarts = 0;
        start_child();
 }