blob: 97462c20ad06884b8ffaa6a9323963bd0edaa68c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-aa,v 1.6 2003/11/11 10:17:39 wiz Exp $
--- stop.c.orig Sun Mar 30 22:05:53 2003
+++ stop.c
@@ -35,17 +35,21 @@ int argc;
char *argv[];
{
unsigned long pid;
+#ifdef __linux__
FILE * pidfile;
char buf[80];
char procname[80];
+#endif
extern unsigned long lockpid();
extern char *make_lock_name();
extern void quit();
pid = lockpid(make_lock_name(monfile));
+#ifdef __linux__
procname[0] = 0;
buf[0] = 0;
pidfile = (FILE *) NULL;
+#endif
if( pid == 0 )
{
|