Module Name:    src
Committed By:   adam
Date:           Mon Nov 22 09:53:01 UTC 2010

Modified Files:
        src/crypto/external/bsd/openssh/dist: servconf.c sftp.c ssh-keygen.c

Log Message:
Fix compiler warnings


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/crypto/external/bsd/openssh/dist/servconf.c
cvs rdiff -u -r1.4 -r1.5 src/crypto/external/bsd/openssh/dist/sftp.c \
    src/crypto/external/bsd/openssh/dist/ssh-keygen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/openssh/dist/servconf.c
diff -u src/crypto/external/bsd/openssh/dist/servconf.c:1.5 src/crypto/external/bsd/openssh/dist/servconf.c:1.6
--- src/crypto/external/bsd/openssh/dist/servconf.c:1.5	Sun Nov 21 18:59:04 2010
+++ src/crypto/external/bsd/openssh/dist/servconf.c	Mon Nov 22 09:53:01 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: servconf.c,v 1.5 2010/11/21 18:59:04 adam Exp $	*/
+/*	$NetBSD: servconf.c,v 1.6 2010/11/22 09:53:01 adam Exp $	*/
 /* $OpenBSD: servconf.c,v 1.209 2010/06/22 04:22:59 djm Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
@@ -12,7 +12,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: servconf.c,v 1.5 2010/11/21 18:59:04 adam Exp $");
+__RCSID("$NetBSD: servconf.c,v 1.6 2010/11/22 09:53:01 adam Exp $");
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/queue.h>
@@ -816,7 +816,8 @@
 	int cmdline = 0, *intptr, value, n;
 	SyslogFacility *log_facility_ptr;
 	LogLevel *log_level_ptr;
- 	unsigned long lvalue, *longptr;
+ 	unsigned long lvalue;
+	time_t *timetptr;
 	ServerOpCodes opcode;
 	int port = 0;
 	u_int i, flags = 0;
@@ -831,7 +832,7 @@
 	if (!arg || !*arg || *arg == '#')
 		return 0;
 	intptr = NULL;
-	longptr = NULL;
+	timetptr = NULL;
 	charptr = NULL;
 	opcode = parse_token(arg, filename, linenum, &flags);
 
@@ -1627,19 +1628,19 @@
 			*intptr = value;
 		break;
 	case sBindTimeout:
-		longptr = (unsigned long *) &options->lpk.b_timeout.tv_sec;
+		timetptr = &options->lpk.b_timeout.tv_sec;
 parse_ulong:
 		arg = strdelim(&cp);
 		if (!arg || *arg == '\0')
 			fatal("%s line %d: missing integer value.",
 			    filename, linenum);
 		lvalue = atol(arg);
-		if (*activep && *longptr == -1)
-			*longptr = lvalue;
+		if (*activep && *timetptr == -1)
+			*timetptr = lvalue;
 		break;
 
 	case sSearchTimeout:
-		longptr = (unsigned long *) &options->lpk.s_timeout.tv_sec;
+		timetptr = &options->lpk.s_timeout.tv_sec;
 		goto parse_ulong;
 		break;
 	case sLdapConf:

Index: src/crypto/external/bsd/openssh/dist/sftp.c
diff -u src/crypto/external/bsd/openssh/dist/sftp.c:1.4 src/crypto/external/bsd/openssh/dist/sftp.c:1.5
--- src/crypto/external/bsd/openssh/dist/sftp.c:1.4	Sun Nov 21 18:29:49 2010
+++ src/crypto/external/bsd/openssh/dist/sftp.c	Mon Nov 22 09:53:01 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: sftp.c,v 1.4 2010/11/21 18:29:49 adam Exp $	*/
+/*	$NetBSD: sftp.c,v 1.5 2010/11/22 09:53:01 adam Exp $	*/
 /* $OpenBSD: sftp.c,v 1.125 2010/06/18 00:58:39 djm Exp $ */
 /*
  * Copyright (c) 2001-2004 Damien Miller <[email protected]>
@@ -17,7 +17,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: sftp.c,v 1.4 2010/11/21 18:29:49 adam Exp $");
+__RCSID("$NetBSD: sftp.c,v 1.5 2010/11/22 09:53:01 adam Exp $");
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include <sys/wait.h>
@@ -1778,7 +1778,7 @@
 	struct complete_ctx *complete_ctx;
 
 	lf = el_line(el);
-	if (el_get(el, EL_CLIENTDATA, (void**)&complete_ctx) != 0)
+	if (el_get(el, EL_CLIENTDATA, &complete_ctx) != 0)
 		fatal("%s: el_get failed", __func__);
 
 	/* Figure out which argument the cursor points to */
Index: src/crypto/external/bsd/openssh/dist/ssh-keygen.c
diff -u src/crypto/external/bsd/openssh/dist/ssh-keygen.c:1.4 src/crypto/external/bsd/openssh/dist/ssh-keygen.c:1.5
--- src/crypto/external/bsd/openssh/dist/ssh-keygen.c:1.4	Sun Nov 21 18:29:49 2010
+++ src/crypto/external/bsd/openssh/dist/ssh-keygen.c	Mon Nov 22 09:53:01 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: ssh-keygen.c,v 1.4 2010/11/21 18:29:49 adam Exp $	*/
+/*	$NetBSD: ssh-keygen.c,v 1.5 2010/11/22 09:53:01 adam Exp $	*/
 /* $OpenBSD: ssh-keygen.c,v 1.199 2010/08/16 04:06:06 djm Exp $ */
 /*
  * Author: Tatu Ylonen <[email protected]>
@@ -14,7 +14,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: ssh-keygen.c,v 1.4 2010/11/21 18:29:49 adam Exp $");
+__RCSID("$NetBSD: ssh-keygen.c,v 1.5 2010/11/22 09:53:01 adam Exp $");
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
@@ -1445,7 +1445,7 @@
 		if (!quiet) {
 			logit("Signed %s key %s: id \"%s\" serial %llu%s%s "
 			    "valid %s", key_cert_type(public), 
-			    out, public->cert->key_id, public->cert->serial,
+			    out, public->cert->key_id, (unsigned long long)public->cert->serial,
 			    cert_principals != NULL ? " for " : "",
 			    cert_principals != NULL ? cert_principals : "",
 			    fmt_validity(cert_valid_from, cert_valid_to));
@@ -1671,7 +1671,7 @@
 	    key_type(key->cert->signature_key), ca_fp);
 	printf("        Key ID: \"%s\"\n", key->cert->key_id);
 	if (!v00)
-		printf("        Serial: %llu\n", key->cert->serial);
+		printf("        Serial: %llu\n", (unsigned long long)key->cert->serial);
 	printf("        Valid: %s\n",
 	    fmt_validity(key->cert->valid_after, key->cert->valid_before));
 	printf("        Principals: ");

Reply via email to