comparison src/dhcpcd.c @ 5547:c9182c3618e6 draft

Improve readability.
author Roy Marples <roy@marples.name>
date Sat, 21 Nov 2020 12:01:21 +0000
parents fc24946f9b2a
children dba7608e00b3
comparison
equal deleted inserted replaced
5546:08426e8a98a7 5547:c9182c3618e6
989 989
990 void 990 void
991 dhcpcd_activateinterface(struct interface *ifp, unsigned long long options) 991 dhcpcd_activateinterface(struct interface *ifp, unsigned long long options)
992 { 992 {
993 993
994 if (!ifp->active) { 994 if (ifp->active)
995 ifp->active = IF_ACTIVE; 995 return;
996 dhcpcd_initstate2(ifp, options); 996
997 /* It's possible we might not have been able to load 997 ifp->active = IF_ACTIVE;
998 * a config. */ 998 dhcpcd_initstate2(ifp, options);
999 if (ifp->active) { 999
1000 configure_interface1(ifp); 1000 /* It's possible we might not have been able to load
1001 run_preinit(ifp); 1001 * a config. */
1002 dhcpcd_prestartinterface(ifp); 1002 if (!ifp->active)
1003 } 1003 return;
1004 } 1004
1005 configure_interface1(ifp);
1006 run_preinit(ifp);
1007 dhcpcd_prestartinterface(ifp);
1005 } 1008 }
1006 1009
1007 int 1010 int
1008 dhcpcd_handleinterface(void *arg, int action, const char *ifname) 1011 dhcpcd_handleinterface(void *arg, int action, const char *ifname)
1009 { 1012 {