fix printf warning
[oweals/busybox.git] / libbb / create_icmp6_socket.c
index 1d0b6b6bfbc5cfce7b7d1abe363242b0ee12c4e3..d8ff35a0ad5e7c4da5080314b2a7cef9e9ba87f0 100644 (file)
@@ -2,8 +2,8 @@
 /*
  * Utility routines.
  *
- * create raw socket for icmp (IPv6 version) protocol test permision
- * and drop root privilegies if running setuid
+ * create raw socket for icmp (IPv6 version) protocol test permission
+ * and drop root privileges if running setuid
  *
  */
 
@@ -26,9 +26,9 @@ int create_icmp6_socket(void)
        if ((sock = socket(AF_INET6, SOCK_RAW,
                        (proto ? proto->p_proto : IPPROTO_ICMPV6))) < 0) {
                if (errno == EPERM)
-                       error_msg_and_die("permission denied. (are you root?)");
+                       bb_error_msg_and_die(bb_msg_perm_denied_are_you_root);
                else
-                       perror_msg_and_die(can_not_create_raw_socket);
+                       bb_perror_msg_and_die(bb_msg_can_not_create_raw_socket);
        }
 
        /* drop root privs if running setuid */