suggested bsd-setproctitle.c

Ben Lindstrom mouring at pconline.com
Mon Nov 6 09:09:34 EST 2000


Keven Steves, 

Can I suggest this minor change. To halt a bit of compiler grumble on
BSD4.3 platforms. 

It's complaining about unsued variable "__progname".

I wanted to check with you before committing it incase you had some
other plans in mind (and I know how I hate when others break my code =).

Thanks,

- Ben

--- ../openssh/bsd-setproctitle.c	Wed Oct 18 08:11:44 2000
+++ bsd-setproctitle.c	Sun Nov  5 16:59:07 2000
@@ -56,11 +56,13 @@
 
 #define	MAX_PROCTITLE	2048
 
-#ifdef HAVE___PROGNAME
-extern char *__progname;
-#else
-static const char *__progname = "sshd";
-#endif /* HAVE___PROGNAME */
+#if SPT_TYPE != SPT_NONE
+#  ifdef HAVE___PROGNAME
+  extern char *__progname;
+#  else
+  static const char *__progname = "sshd";
+#  endif /* HAVE___PROGNAME */
+#endif /* SPT_TYPE != SPT_NONE */
 
 /*
  * Set Process Title (SPT) defines.  Modeled after sendmail's







More information about the openssh-unix-dev mailing list