]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
reverse order of arguments
authorregehr <regehr>
Mon, 30 Jun 2008 14:39:26 +0000 (14:39 +0000)
committerregehr <regehr>
Mon, 30 Jun 2008 14:39:26 +0000 (14:39 +0000)
tools/tinyos/safe/tos-decode-flid

index 5dab226a93b662955381392658b3028ce494668c..0356ddc1a63586b1c7c6cc02fed89fa4bcb091cb 100755 (executable)
@@ -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)) {