about summary refs log tree commit diff
path: root/search.c
diff options
context:
space:
mode:
authorokan <okan>2011-07-25 15:10:24 +0000
committerokan <okan>2011-07-25 15:10:24 +0000
commitf51f3cb9c2b39f728f2708d7ab798ecaf1cebaf0 (patch)
tree1fc947a7565944bf2613155ca188c7fda3cbff3c /search.c
parent69ac0624cc07ffc8df11287a8827b42773371b0e (diff)
downloadcwm-f51f3cb9c2b39f728f2708d7ab798ecaf1cebaf0.tar.gz
cwm-f51f3cb9c2b39f728f2708d7ab798ecaf1cebaf0.tar.xz
cwm-f51f3cb9c2b39f728f2708d7ab798ecaf1cebaf0.zip
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 'search.c')
-rw-r--r--search.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/search.c b/search.c
index 6ec37b5..8d58067 100644
--- a/search.c
+++ b/search.c
@@ -46,7 +46,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
 
 	TAILQ_INIT(resultq);
 
-	memset(tierp, 0, sizeof(tierp));
+	(void)memset(tierp, 0, sizeof(tierp));
 
 	/*
 	 * In order of rank:
@@ -134,7 +134,8 @@ search_print_client(struct menu *mi, int list)
 	if (list)
 		cc->matchname = cc->name;
 
-	snprintf(mi->print, sizeof(mi->print), "%c%s", flag, cc->matchname);
+	(void)snprintf(mi->print, sizeof(mi->print), "%c%s", flag,
+	    cc->matchname);
 
 	if (!list && cc->matchname != cc->name &&
 	    strlen(mi->print) < sizeof(mi->print) - 1) {
@@ -154,8 +155,8 @@ search_print_client(struct menu *mi, int list)
 			diff = strlen(cc->name);
 		}
 
-		strlcpy(buf, mi->print, sizeof(buf));
-		snprintf(mi->print, sizeof(mi->print),
+		(void)strlcpy(buf, mi->print, sizeof(buf));
+		(void)snprintf(mi->print, sizeof(mi->print),
 		    "%s:%.*s%s", buf, diff, cc->name, marker);
 	}
 }