aboutsummaryrefslogtreecommitdiffstats
path: root/if-pref.c
diff options
context:
space:
mode:
Diffstat (limited to 'if-pref.c')
-rw-r--r--if-pref.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/if-pref.c b/if-pref.c
index 83b1b0f..6169dbe 100644
--- a/if-pref.c
+++ b/if-pref.c
@@ -1,6 +1,6 @@
/*
* dhcpcd - DHCP client daemon
- * Copyright (c) 2006-2010 Roy Marples <roy@marples.name>
+ * Copyright (c) 2006-2012 Roy Marples <roy@marples.name>
* All rights reserved
* Redistribution and use in source and binary forms, with or without
@@ -55,9 +55,9 @@ ifcmp(struct interface *si, struct interface *ti)
sill = (si->state->new->cookie == htonl(MAGIC_COOKIE));
till = (ti->state->new->cookie == htonl(MAGIC_COOKIE));
if (!sill && till)
- return -1;
- if (sill && !till)
return 1;
+ if (sill && !till)
+ return -1;
}
/* Then carrier status. */
if (si->carrier > ti->carrier)