Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssh/dist remove __UNCONST, initialize
details: https://anonhg.NetBSD.org/src/rev/d678b296eb31
branches: trunk
changeset: 1019283:d678b296eb31
user: christos <christos%NetBSD.org@localhost>
date: Fri Mar 05 17:53:51 2021 +0000
description:
remove __UNCONST, initialize
diffstat:
crypto/external/bsd/openssh/dist/scp.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (74 lines):
diff -r 2b25d970c0ab -r d678b296eb31 crypto/external/bsd/openssh/dist/scp.c
--- a/crypto/external/bsd/openssh/dist/scp.c Fri Mar 05 17:47:15 2021 +0000
+++ b/crypto/external/bsd/openssh/dist/scp.c Fri Mar 05 17:53:51 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scp.c,v 1.29 2021/03/05 17:47:16 christos Exp $ */
+/* $NetBSD: scp.c,v 1.30 2021/03/05 17:53:51 christos Exp $ */
/* $OpenBSD: scp.c,v 1.213 2020/10/18 11:32:01 djm Exp $ */
/*
@@ -74,7 +74,7 @@
*/
#include "includes.h"
-__RCSID("$NetBSD: scp.c,v 1.29 2021/03/05 17:47:16 christos Exp $");
+__RCSID("$NetBSD: scp.c,v 1.30 2021/03/05 17:53:51 christos Exp $");
#include <sys/param.h> /* roundup MAX */
#include <sys/types.h>
@@ -877,7 +877,7 @@
void
toremote(int argc, char **argv)
{
- char *suser = NULL, *host = NULL, *src;
+ char *suser = NULL, *host = NULL, *src = NULL;
char *bp, *tuser, *thost, *targ;
int sport = -1, tport = -1;
arglist alist;
@@ -911,7 +911,7 @@
for (i = 0; i < argc - 1; i++) {
free(suser);
free(host);
- free(__UNCONST(src));
+ free(src);
r = parse_scp_uri(argv[i], &suser, &host, &sport, &src);
if (r == -1) {
fmprintf(stderr, "%s: invalid uri\n", argv[i]);
@@ -989,16 +989,16 @@
out:
free(tuser);
free(thost);
- free(__UNCONST(targ));
+ free(targ);
free(suser);
free(host);
- free(__UNCONST(src));
+ free(src);
}
static void
tolocal(int argc, char **argv)
{
- char *bp, *host = NULL, *suser = NULL, *src;
+ char *bp, *host = NULL, *suser = NULL, *src = NULL;
arglist alist;
int i, r, sport = -1;
@@ -1008,7 +1008,7 @@
for (i = 0; i < argc - 1; i++) {
free(suser);
free(host);
- free(__UNCONST(src));
+ free(src);
r = parse_scp_uri(argv[i], &suser, &host, &sport, &src);
if (r == -1) {
fmprintf(stderr, "%s: invalid uri\n", argv[i]);
@@ -1050,7 +1050,7 @@
}
free(suser);
free(host);
- free(__UNCONST(src));
+ free(src);
}
void
Home |
Main Index |
Thread Index |
Old Index