Author: tfaber
Date: Sat Aug 6 07:57:51 2016
New Revision: 72121
URL:
http://svn.reactos.org/svn/reactos?rev=72121&view=rev
Log:
[ARP]
- Do not return failure after successful operations
CORE-11794
Modified:
trunk/reactos/base/applications/network/arp/arp.c
Modified: trunk/reactos/base/applications/network/arp/arp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/arp/arp.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/arp/arp.c [iso-8859-1] Sat Aug 6 07:57:51
2016
@@ -568,24 +568,30 @@
else if ((argc == 5) && ((strcmp(argv[3], "-N"))
== 0))
DisplayArpEntries(argv[2], argv[4]);
else
+ {
Usage();
return EXIT_FAILURE;
+ }
break;
case 'd': if (argc == 3)
Deletehost(argv[2], NULL);
else if (argc == 4)
Deletehost(argv[2], argv[3]);
else
+ {
Usage();
return EXIT_FAILURE;
+ }
break;
case 's': if (argc == 4)
Addhost(argv[2], argv[3], NULL);
else if (argc == 5)
Addhost(argv[2], argv[3], argv[4]);
else
+ {
Usage();
return EXIT_FAILURE;
+ }
break;
default:
Usage();