summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authorstevesk <stevesk@openbsd.org>2001-09-24 03:38:58 +0000
committerstevesk <stevesk@openbsd.org>2001-09-24 03:38:58 +0000
commit9d1ce381b43716ac697a6bc2d07d603c6b906b72 (patch)
tree06816d8cca383cf935af50b3df2b210b994b1525 /usr.bin/ssh/ssh.c
parentthere was a possible overrun in prev folding length fix. (diff)
downloadwireguard-openbsd-9d1ce381b43716ac697a6bc2d07d603c6b906b72.tar.xz
wireguard-openbsd-9d1ce381b43716ac697a6bc2d07d603c6b906b72.zip
don't rely on <unistd.h> for getopt(3) extern variable declarations;
for portable. ok deraadt@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r--usr.bin/ssh/ssh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 99e8470993f..f9b44ce3387 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh.c,v 1.143 2001/09/20 13:50:40 markus Exp $");
+RCSID("$OpenBSD: ssh.c,v 1.144 2001/09/24 03:38:58 stevesk Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -256,6 +256,8 @@ main(int ac, char **av)
struct passwd *pw;
int dummy;
uid_t original_effective_uid;
+ extern int optind, optreset;
+ extern char *optarg;
/*
* Save the original real uid. It will be needed later (uid-swapping