summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-02-13 11:20:09 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-02-13 11:20:09 +0000
commit0c31a27b8190be05786772bf123426643fc809e2 (patch)
treee620175f6db3269e74be6912d29f78badb574995 /usr.sbin
parent1bdb64235fb7b4e805f079cd335df9b97f6843d5 (diff)
no need to set values after bcopying the complete struct
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/relayd/relayd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/relayd/relayd.c b/usr.sbin/relayd/relayd.c
index 570ad2a13aa..c0dc3103f7e 100644
--- a/usr.sbin/relayd/relayd.c
+++ b/usr.sbin/relayd/relayd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayd.c,v 1.71 2008/02/13 11:02:37 reyk Exp $ */
+/* $OpenBSD: relayd.c,v 1.72 2008/02/13 11:20:08 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -1074,14 +1074,11 @@ protonode_add(enum direction dir, struct protocol *proto,
bcopy(node, pn, sizeof(*pn));
pn->key = node->key;
pn->value = node->value;
- pn->type = node->type;
- pn->label = node->label;
SIMPLEQ_INIT(&pn->head);
if (dir == RELAY_DIR_RESPONSE)
pn->id = proto->response_nodes++;
else
pn->id = proto->request_nodes++;
- pn->flags = node->flags;
if (pn->id == INT_MAX) {
log_warnx("too many protocol nodes defined");
free(pn);