From: regehr Date: Mon, 30 Jun 2008 14:39:26 +0000 (+0000) Subject: reverse order of arguments X-Git-Tag: release_tinyos_2_1_0_0~135 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=b927c104e460071ba1b0bb7d285febbe2f0ec9cf reverse order of arguments --- diff --git a/tools/tinyos/safe/tos-decode-flid b/tools/tinyos/safe/tos-decode-flid index 5dab226a..0356ddc1 100755 --- a/tools/tinyos/safe/tos-decode-flid +++ b/tools/tinyos/safe/tos-decode-flid @@ -13,13 +13,13 @@ sub decode ($$) { } sub usage() { - print "Usage: tos-decode-flid flid flid-file\n"; + print "Usage: tos-decode-flid flid-file flid\n"; exit 2; } sub make_flid () { - my $flid = $ARGV[0]; + my $flid = $ARGV[1]; die "expected 8 characters" if (length($flid) != 8); my $flidstr = @@ -34,7 +34,7 @@ usage() if (scalar(@ARGV)!=2); my $flidstr = make_flid(); -my $fn = $ARGV[1]; +my $fn = $ARGV[0]; my $found = 0; if (defined ($fn)) {