initial vars and absolute R_ things in sh/node sh/lockout and sh/isolate
authorminima <minima>
Mon, 31 Jul 2000 21:38:26 +0000 (21:38 +0000)
committerminima <minima>
Mon, 31 Jul 2000 21:38:26 +0000 (21:38 +0000)
cmd/show/isolate.pl
cmd/show/lockout.pl
cmd/show/node.pl

index c874e8a8f930f46ef16e818da4de018238dea7af..bb66e5177777a7d9069e7a5537eae934e2733a15 100644 (file)
@@ -15,8 +15,8 @@ my @out;
 
 use DB_File;
 
-my ($action, $count, $key, $data);
-for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = R_NEXT) {
+my ($action, $count, $key, $data) = (0,0,0,0);
+for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
        if ($data =~ m{isolate =>}) {
                my $u = DXUser->get_current($key);
                if ($u && $u->isolate) {
index 8c9c488c7399bc9b31943b99805ecaea6853a39f..04d1ef12fca5529f62e447b032e0e2b82d7407cd 100644 (file)
@@ -15,8 +15,8 @@ my @out;
 
 use DB_File;
 
-my ($action, $count, $key, $data);
-for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = R_NEXT) {
+my ($action, $count, $key, $data) = (0,0,0,0);
+for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
        if ($data =~ m{lockout =>}) {
                my $u = DXUser->get_current($key);
                if ($u && $u->lockout) {
index 76372cb5a318c6467a8c4f34bbe3d622407e69c0..d45cad36155a8e85ef49131ecb2e336cbd48bdf9 100644 (file)
@@ -26,7 +26,7 @@ my $count;
 # search thru the user for nodes
 unless (@call) {
        
-       my ($action, $key, $data);
+       my ($action, $key, $data) = (0,0,0);
        for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
                if ($data =~ m{sort => '[ACRSX]'}) {
                    push @call, $key;