diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2017-07-29 16:03:11 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2017-07-29 16:03:11 +0000 |
commit | 48667d3aa002d8baec0da9a95a6d1c9acca8e486 (patch) | |
tree | 8b62391fd4a95ad26ebdc880edbb17f8e4860a93 | |
parent | 44b1d5ad70728713557ab86680346b1af7c9feea (diff) |
return -1 in error path of non-void function, pointed out by clang
OK deraadt
-rw-r--r-- | usr.bin/systat/pool.c | 3 |
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 |