aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorokan2011-07-25 15:10:24 +0000
committerokan2011-07-25 15:10:24 +0000
commit02915d130c044aa89ceff108b868c705856a35ca (patch)
tree819b08241dca0050a75a5ec1af2cc17fb98d8382 /parse.y
parent1ef8b9886258d857d0c25c9ab2f5220b4acb8065 (diff)
downloadcwm-02915d130c044aa89ceff108b868c705856a35ca.tar.gz
We are inconsistent when it comes to function returns, so just go all
the way with the cwm specific parts. ok oga@
Diffstat (limited to '')
-rw-r--r--parse.y10
1 files changed, 5 insertions, 5 deletions
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 <henning@openbsd.org>
@@ -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++)