aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorokan2011-06-24 05:40:09 +0000
committerokan2011-06-24 05:40:09 +0000
commit042dd52d9a25ab335d4aad404694a0bef8b93ebd (patch)
tree05a25c2d87b03158e2b7eaf645ac0eb6d3c7e0e3 /util.c
parent9cc5f84c650971dd1e6791e22c983221ba4aaf43 (diff)
downloadcwm-042dd52d9a25ab335d4aad404694a0bef8b93ebd.tar.gz
alter a few function returns and prototypes; found by lint.
ok oga@
Diffstat (limited to '')
-rw-r--r--util.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/util.c b/util.c
index 6993984..aa15900 100644
--- a/util.c
+++ b/util.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: util.c,v 1.13 2011/05/11 13:53:51 okan Exp $
+ * $OpenBSD: util.c,v 1.14 2011/06/24 05:40:09 okan Exp $
*/
#include <sys/param.h>
@@ -32,7 +32,7 @@
#define MAXARGLEN 20
-int
+void
u_spawn(char *argstr)
{
switch (fork()) {
@@ -42,12 +42,9 @@ u_spawn(char *argstr)
break;
case -1:
warn("fork");
- return (-1);
default:
break;
}
-
- return (0);
}
void