summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2001-07-04 21:27:20 -0700
committerTim Rice <tim@multitalents.net>2001-07-04 21:27:20 -0700
commit024acc46e6d145708881b854c84b0eb879550c38 (patch)
tree271bf29bf76a384e5b3057dbe2d6b9b3d23d7d9f
parent7281a9bc8c1094c6b9ac92e7eaa2b76a8ca1f13d (diff)
- (tim) [openbsd-compat/dirname.h] Remove ^M causing some compilers to
issue warning (line 1: tokens ignored at end of directive line) - (tim) [sshconnect1.c] give the compiler something to do for success: if KRB5 and AFS are not defined. (ERROR: "sshconnect1.c", line 1274: Syntax error before or at: })
-rw-r--r--ChangeLog7
-rw-r--r--openbsd-compat/dirname.h10
-rw-r--r--sshconnect1.c5
3 files changed, 16 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 85993f5d..18c8ff63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -136,6 +136,11 @@
- (stevesk) more sync for session.c
- (stevesk) sync servconf.h (comments)
- (tim) [contrib/caldera/openssh.spec] sync with Caldera
+ - (tim) [openbsd-compat/dirname.h] Remove ^M causing some compilers to
+ issue warning (line 1: tokens ignored at end of directive line)
+ - (tim) [sshconnect1.c] give the compiler something to do for success:
+ if KRB5 and AFS are not defined
+ (ERROR: "sshconnect1.c", line 1274: Syntax error before or at: })
20010629
- (bal) Removed net_aton() since we don't use it any more
@@ -5963,4 +5968,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
-$Id: ChangeLog,v 1.1382 2001/07/05 00:45:28 tim Exp $
+$Id: ChangeLog,v 1.1383 2001/07/05 04:27:20 tim Exp $
diff --git a/openbsd-compat/dirname.h b/openbsd-compat/dirname.h
index c51cff74..1d61dd06 100644
--- a/openbsd-compat/dirname.h
+++ b/openbsd-compat/dirname.h
@@ -1,5 +1,5 @@
-#ifndef HAVE_DIRNAME
-
-char *dirname(const char *path);
-
-#endif
+#ifndef HAVE_DIRNAME
+
+char *dirname(const char *path);
+
+#endif
diff --git a/sshconnect1.c b/sshconnect1.c
index 166fdc17..526d149f 100644
--- a/sshconnect1.c
+++ b/sshconnect1.c
@@ -1271,4 +1271,9 @@ ssh_userauth1(const char *local_user, const char *server_user, char *host,
send_afs_tokens();
}
#endif /* AFS */
+
+/* give the compiler something to do for success: */
+#if !defined(KRB5) && !defined(AFS)
+ ;
+#endif
}