From 49a79c09762613f29601ef2470d13952168021be Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Fri, 17 Nov 2000 03:47:20 +0000 Subject: - (stevek) Reworked progname support. - (bal) Misplaced #include "includes.h" in bsd-setproctitle.c. Patch by Shinichi Maruyama I assume the progname patch was finished. I believe stevek is on vacation, but it passes compiling under Linux and NeXTStep. --- bsd-setproctitle.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bsd-setproctitle.c') diff --git a/bsd-setproctitle.c b/bsd-setproctitle.c index 51a642e85..38eca9ad7 100644 --- a/bsd-setproctitle.c +++ b/bsd-setproctitle.c @@ -38,10 +38,10 @@ static char rcsid[] = "$OpenBSD: setproctitle.c,v 1.7 1999/02/25 22:10:12 art Exp $"; #endif /* LIBC_SCCS and not lint */ -#ifndef HAVE_SETPROCTITLE - #include "includes.h" +#ifndef HAVE_SETPROCTITLE + #define SPT_NONE 0 #define SPT_PSTAT 1 @@ -56,11 +56,7 @@ static char rcsid[] = "$OpenBSD: setproctitle.c,v 1.7 1999/02/25 22:10:12 art Ex #define MAX_PROCTITLE 2048 -#ifdef HAVE___PROGNAME extern char *__progname; -#else -static const char *__progname = "sshd"; -#endif /* HAVE___PROGNAME */ /* * Set Process Title (SPT) defines. Modeled after sendmail's -- cgit v1.2.3