-/* $OpenBSD: util.c,v 1.108 2014/02/04 10:38:06 eric Exp $ */
+/* $OpenBSD: util.c,v 1.109 2014/04/19 14:32:03 gilles Exp $ */
/*
* Copyright (c) 2000,2001 Markus Friedl. All rights reserved.
retry = 0;
again:
- snprintf(buf, sizeof buf, "%s%s%u", to, sep, arc4random());
+ (void)snprintf(buf, sizeof buf, "%s%s%u", to, sep, arc4random());
if (rename(from, buf) == -1) {
/* ENOTDIR has actually 2 meanings, and incorrect input
* could lead to an infinite loop. Consider that after
for (;;) {
if ((cp = dirname(buf)) == NULL)
return 0;
- strlcpy(buf, cp, sizeof(buf));
+ (void)strlcpy(buf, cp, sizeof(buf));
if (stat(buf, &st) < 0 ||
(st.st_uid != 0 && st.st_uid != uid) ||