aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/search.c b/search.c
index 79e1015..9db2f70 100644
--- a/search.c
+++ b/search.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: search.c,v 1.23 2011/05/11 13:53:51 okan Exp $
+ * $OpenBSD: search.c,v 1.24 2011/07/25 15:10:24 okan Exp $
*/
#include <sys/param.h>
@@ -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);
}
}