diff options
author | okan | 2011-07-25 15:10:24 +0000 |
---|---|---|
committer | okan | 2011-07-25 15:10:24 +0000 |
commit | 02915d130c044aa89ceff108b868c705856a35ca (patch) | |
tree | 819b08241dca0050a75a5ec1af2cc17fb98d8382 /group.c | |
parent | 1ef8b9886258d857d0c25c9ab2f5220b4acb8065 (diff) | |
download | cwm-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 'group.c')
-rw-r--r-- | group.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: group.c,v 1.50 2011/05/11 13:53:51 okan Exp $ + * $OpenBSD: group.c,v 1.51 2011/07/25 15:10:24 okan Exp $ */ #include <sys/param.h> @@ -377,10 +377,10 @@ group_menu(XButtonEvent *e) mi = xcalloc(1, sizeof(*mi)); if (gc->hidden) - snprintf(mi->text, sizeof(mi->text), "%d: [%s]", + (void)snprintf(mi->text, sizeof(mi->text), "%d: [%s]", gc->shortcut, sc->group_names[i]); else - snprintf(mi->text, sizeof(mi->text), "%d: %s", + (void)snprintf(mi->text, sizeof(mi->text), "%d: %s", gc->shortcut, sc->group_names[i]); mi->ctx = gc; TAILQ_INSERT_TAIL(&menuq, mi, entry); @@ -533,7 +533,7 @@ group_set_names(struct screen_ctx *sc) tlen = len; for (i = 0; i < sc->group_nonames; i++) { slen = strlen(sc->group_names[i]) + 1; - strlcpy(q, sc->group_names[i], tlen); + (void)strlcpy(q, sc->group_names[i], tlen); tlen -= slen; q += slen; } |