Mercurial > dropbear
diff scp.c @ 303:b27fcd28f9dc ucc-axis-hack
printf not fprintf for scp stuff
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 25 Mar 2006 13:35:44 +0000 |
parents | 973fccb59ea4 |
children |
line wrap: on
line diff
--- a/scp.c Sat Mar 25 12:59:58 2006 +0000 +++ b/scp.c Sat Mar 25 13:35:44 2006 +0000 @@ -125,10 +125,10 @@ fatal("do_local_cmd: no arguments"); if (verbose_mode) { - fprintf(stderr, "Executing:"); + printf( "Executing:"); for (i = 0; i < a->num; i++) - fprintf(stderr, " %s", a->list[i]); - fprintf(stderr, "\n"); + printf( " %s", a->list[i]); + printf( "\n"); } if ((pid = fork()) == -1) fatal("do_local_cmd: fork: %s", strerror(errno)); @@ -858,7 +858,7 @@ } while (cp < &buf[sizeof(buf) - 1] && ch != '\n'); *cp = 0; if (verbose_mode) - fprintf(stderr, "Sink: %s", buf); + printf( "Sink: %s", buf); if (buf[0] == '\01' || buf[0] == '\02') { if (iamremote == 0) @@ -1146,12 +1146,12 @@ ++errs; if (fp == NULL && !(fp = fdopen(remout, "w"))) return; - (void) fprintf(fp, "%c", 0x01); - (void) fprintf(fp, "scp: "); + (void) printf( "%c", 0x01); + (void) printf( "scp: "); va_start(ap, fmt); - (void) vfprintf(fp, fmt, ap); + (void) vprintf( fmt, ap); va_end(ap); - (void) fprintf(fp, "\n"); + (void) printf( "\n"); (void) fflush(fp); if (!iamremote) {