From 02915d130c044aa89ceff108b868c705856a35ca Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 25 Jul 2011 15:10:24 +0000 Subject: We are inconsistent when it comes to function returns, so just go all the way with the cwm specific parts. ok oga@ --- parse.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 4bfdaa6..94dc862 100644 --- a/parse.y +++ b/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.28 2011/07/14 11:39:53 okan Exp $ */ +/* $OpenBSD: parse.y,v 1.29 2011/07/25 15:10:24 okan Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -142,7 +142,7 @@ main : FONTNAME STRING { struct winmatch *wm; wm = xcalloc(1, sizeof(*wm)); - strlcpy(wm->title, $2, sizeof(wm->title)); + (void)strlcpy(wm->title, $2, sizeof(wm->title)); TAILQ_INSERT_TAIL(&conf->ignoreq, wm, entry); free($2); @@ -502,7 +502,7 @@ parse_config(const char *filename, struct conf *xconf) return (-1); } - strlcpy(conf->conf_path, filename, sizeof(conf->conf_path)); + (void)strlcpy(conf->conf_path, filename, sizeof(conf->conf_path)); conf_init(conf); @@ -555,9 +555,9 @@ parse_config(const char *filename, struct conf *xconf) TAILQ_INSERT_TAIL(&xconf->mousebindingq, mb, entry); } - strlcpy(xconf->termpath, conf->termpath, + (void)strlcpy(xconf->termpath, conf->termpath, sizeof(xconf->termpath)); - strlcpy(xconf->lockpath, conf->lockpath, + (void)strlcpy(xconf->lockpath, conf->lockpath, sizeof(xconf->lockpath)); for (i = 0; i < CWM_COLOR_MAX; i++) -- cgit v1.2.3-2-gb3c3