5e2c7fc773
to return void.
34 lines
777 B
Text
34 lines
777 B
Text
$NetBSD: patch-tknocol_ndaemon_c,v 1.2 2013/03/03 01:07:24 joerg Exp $
|
|
|
|
Use standard headers.
|
|
|
|
--- tknocol/ndaemon.c.orig 2000-01-27 05:23:42.000000000 +0000
|
|
+++ tknocol/ndaemon.c
|
|
@@ -45,6 +45,9 @@
|
|
*
|
|
*/
|
|
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
+
|
|
#include "ndaemon.h"
|
|
|
|
#ifdef LEASED_LINES /* Company specific */
|
|
@@ -332,7 +335,7 @@ static int handle_command(d, cmd)
|
|
|
|
argstr = (char *) index(cmd, ' ');
|
|
if (!argstr) /* invalid malformed command */
|
|
- return;
|
|
+ return -1;
|
|
*argstr++ = '\0';
|
|
|
|
if (!strcasecmp(cmd, "SEVLEVEL")) {
|
|
@@ -342,7 +345,7 @@ static int handle_command(d, cmd)
|
|
numarg = atoi(argstr);
|
|
if ((numarg < 1) || (numarg > 4)) {
|
|
/* Invalid severity level */
|
|
- return;
|
|
+ return -1;
|
|
}
|
|
d->sev_level = numarg;
|
|
}
|