From 42b3f377da2203c5253a4fb26078c964ca074699 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Mon, 26 Feb 2007 16:10:25 +0000 Subject: handle strlcpy return values, make lint happy --- usr.sbin/relayd/relayd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/relayd/relayd.c') diff --git a/usr.sbin/relayd/relayd.c b/usr.sbin/relayd/relayd.c index 52755b0b646..f84b52eeb18 100644 --- a/usr.sbin/relayd/relayd.c +++ b/usr.sbin/relayd/relayd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relayd.c,v 1.19 2007/02/23 00:28:06 deraadt Exp $ */ +/* $OpenBSD: relayd.c,v 1.20 2007/02/26 16:10:24 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -607,7 +607,7 @@ expand_string(char *label, size_t len, const char *srch, const char *repl) log_debug("expand_string: string too long"); return (-1); } - strlcpy(label, tmp, len); /* always fits */ + (void)strlcpy(label, tmp, len); /* always fits */ free(tmp); return (0); -- cgit v1.2.3