]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Correct ordering of log arguments.
authorTed Lemon <source@isc.org>
Thu, 14 Oct 1999 17:40:05 +0000 (17:40 +0000)
committerTed Lemon <source@isc.org>
Thu, 14 Oct 1999 17:40:05 +0000 (17:40 +0000)
client/dhclient.c

index 4035c87bcd61ddcad169b7a1591224982980dc66..84539f56309f49cc842fb9ec5f671e3fb60b1f2c 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char ocopyright[] =
-"$Id: dhclient.c,v 1.85 1999/10/12 16:00:18 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhclient.c,v 1.86 1999/10/14 17:40:05 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1202,25 +1202,21 @@ void state_panic (cpp)
                           yet need renewal, go into BOUND state and
                           timeout at the renewal time. */
                        if (!script_go (client)) {
-                               if (cur_time <
-                                   client -> active -> renewal) {
-                                       client -> state = S_BOUND;
-                                       log_info ("bound: renewal in %s %ld.",
-                                                 "seconds",
-                                                 (long)
-                                                 (client -> active -> renewal
-                                                  - cur_time));
-                                       add_timeout ((client ->
-                                                     active -> renewal),
-                                                    state_bound, client);
-                               } else {
-                                       client -> state = S_BOUND;
-                                       log_info ("bound: immediate renewal.");
-                                       state_bound (client);
-                               }
-                               reinitialize_interfaces ();
-                               go_daemon ();
-                               return;
+                           if (cur_time < client -> active -> renewal) {
+                               client -> state = S_BOUND;
+                               log_info ("bound: renewal in %ld %s.",
+                                         (long)(client -> active -> renewal -
+                                                cur_time), "seconds");
+                               add_timeout (client -> active -> renewal,
+                                            state_bound, client);
+                           } else {
+                               client -> state = S_BOUND;
+                               log_info ("bound: immediate renewal.");
+                               state_bound (client);
+                           }
+                           reinitialize_interfaces ();
+                           go_daemon ();
+                           return;
                        }
                }