]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
add missing == 0
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 3 Jan 2011 14:54:59 +0000 (15:54 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 3 Jan 2011 14:54:59 +0000 (15:54 +0100)
grub-core/net/net.c

index 54663f4b0c48ce84b0ad69c78b1d9eeb67564335..d3b4c74dbb9f9453bbaf6bad4e551e15d567f9ea 100644 (file)
@@ -199,7 +199,7 @@ grub_cmd_deladdr (struct grub_command *cmd __attribute__ ((unused)),
     return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("one argument expected"));
 
   FOR_NET_NETWORK_LEVEL_INTERFACES (inter)
-    if (grub_strcmp (inter->name, args[1]))
+    if (grub_strcmp (inter->name, args[1]) == 0)
       break;
   if (inter == NULL)
     return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("address not found"));
@@ -730,7 +730,7 @@ grub_cmd_dhcpopt (struct grub_command *cmd __attribute__ ((unused)),
     return grub_error (GRUB_ERR_BAD_ARGUMENT, "4 arguments expected");
 
   FOR_NET_NETWORK_LEVEL_INTERFACES (inter)
-    if (grub_strcmp (inter->name, args[1]))
+    if (grub_strcmp (inter->name, args[1]) == 0)
       break;
 
   if (!inter)