Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/rdist fix clobbered variable



details:   https://anonhg.NetBSD.org/src/rev/75d2e6b297a4
branches:  trunk
changeset: 790640:75d2e6b297a4
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 18 20:41:58 2013 +0000

description:
fix clobbered variable

diffstat:

 usr.bin/rdist/docmd.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 4d85ac596763 -r 75d2e6b297a4 usr.bin/rdist/docmd.c
--- a/usr.bin/rdist/docmd.c     Fri Oct 18 20:41:49 2013 +0000
+++ b/usr.bin/rdist/docmd.c     Fri Oct 18 20:41:58 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: docmd.c,v 1.28 2009/04/13 04:35:36 lukem Exp $ */
+/*     $NetBSD: docmd.c,v 1.29 2013/10/18 20:41:58 christos Exp $      */
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)docmd.c    8.1 (Berkeley) 6/9/93";
 #else
-__RCSID("$NetBSD: docmd.c,v 1.28 2009/04/13 04:35:36 lukem Exp $");
+__RCSID("$NetBSD: docmd.c,v 1.29 2013/10/18 20:41:58 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -123,7 +123,7 @@
  * Process commands for sending files to other machines.
  */
 static void
-doarrow(char **filev, struct namelist *files, char *rhost, struct subcmd *cmds)
+doarrow(char **filev, struct namelist *xfiles, char *rhost, struct subcmd *cmds)
 {
        struct namelist *f;
        struct subcmd *sc;
@@ -131,6 +131,7 @@
        int n;
        int volatile ddir;
        int volatile opts;
+       struct namelist * volatile files = xfiles;
 
        opts = options;
        if (debug)



Home | Main Index | Thread Index | Old Index