summaryrefslogtreecommitdiff
path: root/sbin/dhclient/kroute.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-02-17 15:48:04 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-02-17 15:48:04 +0000
commit1311dac9f9bc89fc26f8f05ddf7bf234cc05eb6c (patch)
tree07de35bcefc92e2a98bb7b141aeaef227529a19d /sbin/dhclient/kroute.c
parentbc787054b71e29b6404ed75608be59c2bb364b6c (diff)
Kill a magic number. 0 -> RTP_NONE for priority in constructing routing
messages. Prodded by otto@. RTP_NONE's home pointed out by jsg@.
Diffstat (limited to 'sbin/dhclient/kroute.c')
-rw-r--r--sbin/dhclient/kroute.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c
index 576c12835ad..898bfd0d07d 100644
--- a/sbin/dhclient/kroute.c
+++ b/sbin/dhclient/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.32 2013/02/17 15:08:13 krw Exp $ */
+/* $OpenBSD: kroute.c,v 1.33 2013/02/17 15:48:03 krw Exp $ */
/*
* Copyright 2012 Kenneth R Westerback <krw@openbsd.org>
@@ -256,7 +256,7 @@ priv_add_default_route(struct imsg_add_default_route *imsg)
rtm.rtm_version = RTM_VERSION;
rtm.rtm_type = RTM_ADD;
rtm.rtm_tableid = imsg->rdomain;
- rtm.rtm_priority = 0;
+ rtm.rtm_priority = RTP_NONE;
rtm.rtm_msglen = sizeof(rtm);
iov[iovcnt].iov_base = &rtm;
@@ -446,7 +446,7 @@ priv_delete_address(struct imsg_delete_address *imsg)
rtm.rtm_version = RTM_VERSION;
rtm.rtm_type = RTM_DELETE;
rtm.rtm_tableid = imsg->rdomain;
- rtm.rtm_priority = 0;
+ rtm.rtm_priority = RTP_NONE;
rtm.rtm_msglen = sizeof(rtm);
iov[iovcnt].iov_base = &rtm;
@@ -581,7 +581,7 @@ priv_add_address(struct imsg_add_address *imsg)
rtm.rtm_version = RTM_VERSION;
rtm.rtm_type = RTM_ADD;
rtm.rtm_tableid = imsg->rdomain;
- rtm.rtm_priority = 0;
+ rtm.rtm_priority = RTP_NONE;
rtm.rtm_msglen = sizeof(rtm);
iov[iovcnt].iov_base = &rtm;