summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-07-29 16:03:11 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-07-29 16:03:11 +0000
commit48667d3aa002d8baec0da9a95a6d1c9acca8e486 (patch)
tree8b62391fd4a95ad26ebdc880edbb17f8e4860a93 /usr.bin
parent44b1d5ad70728713557ab86680346b1af7c9feea (diff)
return -1 in error path of non-void function, pointed out by clang
OK deraadt
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/pool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/systat/pool.c b/usr.bin/systat/pool.c
index b6691ae0da6..31ff66556bf 100644
--- a/usr.bin/systat/pool.c
+++ b/usr.bin/systat/pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pool.c,v 1.13 2017/06/23 01:02:18 dlg Exp $ */
+/* $OpenBSD: pool.c,v 1.14 2017/07/29 16:03:10 florian Exp $ */
/*
* Copyright (c) 2008 Can Erkin Acar <canacar@openbsd.org>
*
@@ -496,6 +496,7 @@ unalloc:
pc = &pool_caches[--i];
free(pc->cache_cpus);
}
+ return (-1);
}
void