- djm@cvs.openbsd.org 2003/06/04 12:18:49

[scp.c]
     ansify; ok markus@
This commit is contained in:
Damien Miller 2003-06-04 22:51:08 +10:00
parent 9fc7c699af
commit 65d1f5765f
2 changed files with 15 additions and 29 deletions

View File

@ -17,6 +17,9 @@
- djm@cvs.openbsd.org 2003/06/04 12:03:59 - djm@cvs.openbsd.org 2003/06/04 12:03:59
[serverloop.c] [serverloop.c]
remove bitrotten commet; ok markus@ remove bitrotten commet; ok markus@
- djm@cvs.openbsd.org 2003/06/04 12:18:49
[scp.c]
ansify; ok markus@
- (djm) Update to fix of bug #584: lock card before return. - (djm) Update to fix of bug #584: lock card before return.
From larsch@trustcenter.de From larsch@trustcenter.de
@ -447,4 +450,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.2777 2003/06/04 12:50:54 djm Exp $ $Id: ChangeLog,v 1.2778 2003/06/04 12:51:08 djm Exp $

39
scp.c
View File

@ -71,7 +71,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: scp.c,v 1.103 2003/06/03 02:56:16 millert Exp $"); RCSID("$OpenBSD: scp.c,v 1.104 2003/06/04 12:18:49 djm Exp $");
#include "xmalloc.h" #include "xmalloc.h"
#include "atomicio.h" #include "atomicio.h"
@ -202,9 +202,7 @@ void toremote(char *, int, char *[]);
void usage(void); void usage(void);
int int
main(argc, argv) main(int argc, char **argv)
int argc;
char *argv[];
{ {
int ch, fflag, tflag, status; int ch, fflag, tflag, status;
double speed; double speed;
@ -349,9 +347,7 @@ main(argc, argv)
} }
void void
toremote(targ, argc, argv) toremote(char *targ, int argc, char **argv)
char *targ, *argv[];
int argc;
{ {
int i, len; int i, len;
char *bp, *host, *src, *suser, *thost, *tuser; char *bp, *host, *src, *suser, *thost, *tuser;
@ -439,9 +435,7 @@ toremote(targ, argc, argv)
} }
void void
tolocal(argc, argv) tolocal(int argc, char **argv)
int argc;
char *argv[];
{ {
int i, len; int i, len;
char *bp, *host, *src, *suser; char *bp, *host, *src, *suser;
@ -490,9 +484,7 @@ tolocal(argc, argv)
} }
void void
source(argc, argv) source(int argc, char **argv)
int argc;
char *argv[];
{ {
struct stat stb; struct stat stb;
static BUF buffer; static BUF buffer;
@ -600,9 +592,7 @@ next: (void) close(fd);
} }
void void
rsource(name, statp) rsource(char *name, struct stat *statp)
char *name;
struct stat *statp;
{ {
DIR *dirp; DIR *dirp;
struct dirent *dp; struct dirent *dp;
@ -709,9 +699,7 @@ bwlimit(int amount)
} }
void void
sink(argc, argv) sink(int argc, char **argv)
int argc;
char *argv[];
{ {
static BUF buffer; static BUF buffer;
struct stat stb; struct stat stb;
@ -1050,8 +1038,7 @@ run_err(const char *fmt,...)
} }
void void
verifydir(cp) verifydir(char *cp)
char *cp;
{ {
struct stat stb; struct stat stb;
@ -1065,8 +1052,7 @@ verifydir(cp)
} }
int int
okname(cp0) okname(char *cp0)
char *cp0;
{ {
int c; int c;
char *cp; char *cp;
@ -1096,9 +1082,7 @@ bad: fprintf(stderr, "%s: invalid user name\n", cp0);
} }
BUF * BUF *
allocbuf(bp, fd, blksize) allocbuf(BUF *bp, int fd, int blksize)
BUF *bp;
int fd, blksize;
{ {
size_t size; size_t size;
#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE #ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
@ -1126,8 +1110,7 @@ allocbuf(bp, fd, blksize)
} }
void void
lostconn(signo) lostconn(int signo)
int signo;
{ {
if (!iamremote) if (!iamremote)
write(STDERR_FILENO, "lost connection\n", 16); write(STDERR_FILENO, "lost connection\n", 16);