summaryrefslogtreecommitdiff
path: root/netsvcs/clients/Naming/Dump_Restore
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-16 22:31:22 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-16 22:31:22 +0000
commitbe1bfc72ae85f04171c3d59747e0a178baef80c0 (patch)
tree354ca37e081bcdc2d4b3ed615c826583de785d1b /netsvcs/clients/Naming/Dump_Restore
parent4440166ea0cdd6a8714fddac1abf0f3d11e4dfc7 (diff)
downloadATCD-be1bfc72ae85f04171c3d59747e0a178baef80c0.tar.gz
*** empty log message ***
Diffstat (limited to 'netsvcs/clients/Naming/Dump_Restore')
-rw-r--r--netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp b/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp
index 930be55a812..07a57ca3b88 100644
--- a/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp
+++ b/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp
@@ -63,22 +63,21 @@ Dump_Restore::handle_input (ACE_HANDLE)
return 0;
}
- int result = -1;
switch (option[0])
{
case 'P' :
case 'p' :
- result = set_proc_local ();
+ set_proc_local ();
break;
case 'N' :
case 'n' :
- result = set_node_local ();
+ set_node_local ();
break;
case 'H' :
case 'h' :
if (::scanf ("%s %hu", buf1, &port) <= 0)
break;
- result = set_host (buf1, port);
+ set_host (buf1, port);
break;
case 'F':
case 'f':
@@ -90,15 +89,15 @@ Dump_Restore::handle_input (ACE_HANDLE)
break;
case 'B' :
case 'b' :
- result = populate (Dump_Restore::BIND);
+ populate (Dump_Restore::BIND);
break;
case 'U' :
case 'u' :
- result = populate (Dump_Restore::UNBIND);
+ populate (Dump_Restore::UNBIND);
break;
case 'R' :
case 'r' :
- result = populate (Dump_Restore::REBIND);
+ populate (Dump_Restore::REBIND);
break;
case 'D':
case 'd':
@@ -108,15 +107,11 @@ Dump_Restore::handle_input (ACE_HANDLE)
break;
case 'Q' :
case 'q' :
- result = quit ();
+ quit ();
break;
default :
cout << "Unrecognized command." << endl;
}
-// if (result == 0)
-// cout << "Last operation was successful!" << endl;
-// else
-// cout << "Last operation returned: " << result << endl;
display_menu ();
return 0;