]> andersk Git - openssh.git/commitdiff
- (djm) Compile warning fixes from Mark Miller <markm@swoon.net>
authordjm <djm>
Tue, 29 Aug 2000 22:21:22 +0000 (22:21 +0000)
committerdjm <djm>
Tue, 29 Aug 2000 22:21:22 +0000 (22:21 +0000)
ChangeLog
bsd-daemon.c
bsd-mktemp.c
bsd-snprintf.c
session.c

index 06f412a656beadaaaa12c756be6e3959d1a89c53..1fe68ed61135b1f648ac26f4e1f6cd83fe98e326 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+20000830
+ - (djm) Compile warning fixes from Mark Miller <markm@swoon.net>
+
 20000829
  - (djm) Fix ^C ignored issue on Solaris. Diagnosis from Gert 
    Doering <gert@greenie.muc.de>, John Horne <J.Horne@plymouth.ac.uk> and 
index fe92b76b6c0c14c26c659ec2c75d8b84c7f60c14..de829958c19b72c9646587f679ea30197a67f44e 100644 (file)
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  */
 
-#include "config.h"
+#include "includes.h"
 
 #ifndef HAVE_DAEMON
 
 static char rcsid[] = "$OpenBSD: daemon.c,v 1.2 1996/08/19 08:22:13 tholo Exp $";
 #endif /* LIBC_SCCS and not lint */
 
-#include <fcntl.h>
-#include <unistd.h>
-
-#ifdef HAVE_PATHS_H
-# include <paths.h>
-#endif 
-
 int
 daemon(nochdir, noclose)
        int nochdir, noclose;
index 23831fa91463d82d52294c33234ae1878685f8b4..e8ffd02195bab8398d7dc9a03d75a9096d8ef3e6 100644 (file)
@@ -34,7 +34,7 @@
  * SUCH DAMAGE.
  */
 
-#include "config.h"
+#include "includes.h"
 
 #ifndef HAVE_MKDTEMP
 
 static char rcsid[] = "$OpenBSD: mktemp.c,v 1.13 1998/06/30 23:03:13 deraadt Exp $";
 #endif /* LIBC_SCCS and not lint */
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <unistd.h>
-
-#include "bsd-misc.h"
-#include "bsd-arc4random.h"
-
 static int _gettemp(char *, int *, int, int);
 
 int
index 4716ee291392f30a91392400715ad07b0eaff3bd..5b674c5699578945529074eaeb5710bb7610a94b 100644 (file)
@@ -116,7 +116,9 @@ static void dopr_outch (char *buffer, size_t *currlen, size_t maxlen, char c );
 #define DP_C_LDOUBLE 3
 
 #define char_to_int(p) (p - '0')
-#define MAX(p,q) ((p >= q) ? p : q)
+#ifndef MAX
+# define MAX(p,q) ((p >= q) ? p : q)
+#endif
 
 static void dopr (char *buffer, size_t maxlen, const char *format, va_list args)
 {
index 4a77eef6b2c1168b50f1ba4ac833715a06a1ce22..3678b8f090ac0a186a875a3c5ea11a91bfca0df9 100644 (file)
--- a/session.c
+++ b/session.c
@@ -1837,7 +1837,9 @@ session_proctitle(Session *s)
 void
 do_authenticated2(void)
 {
+#ifdef HAVE_LOGIN_CAP
        struct passwd *pw;
+#endif
 
        /*
         * Cancel the alarm we set to limit the time taken for
This page took 0.114825 seconds and 5 git commands to generate.