mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 01:29:27 +00:00
net: Remove trailing whitespaces
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
6a4d9e859e
commit
e453a4a643
15 files changed
+67
-67
No files matched your search
+5
-5
@@ -174,7 +174,7 @@ check_name_real (const grub_uint8_t *name_at, const grub_uint8_t *head,
|
||||
}
|
||||
if (readable_ptr && grub_memcmp (ptr + 1, readable_ptr, *ptr) != 0)
|
||||
return 0;
|
||||
if (grub_memchr (ptr + 1, 0, *ptr)
|
||||
if (grub_memchr (ptr + 1, 0, *ptr)
|
||||
|| grub_memchr (ptr + 1, '.', *ptr))
|
||||
return 0;
|
||||
if (readable_ptr)
|
||||
@@ -232,7 +232,7 @@ enum
|
||||
DNS_CLASS_AAAA = 28
|
||||
};
|
||||
|
||||
static grub_err_t
|
||||
static grub_err_t
|
||||
recv_hook (grub_net_udp_socket_t sock __attribute__ ((unused)),
|
||||
struct grub_net_buff *nb,
|
||||
void *data_)
|
||||
@@ -261,7 +261,7 @@ recv_hook (grub_net_udp_socket_t sock __attribute__ ((unused)),
|
||||
grub_netbuff_free (nb);
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
|
||||
if (head->id != data->id)
|
||||
{
|
||||
grub_netbuff_free (nb);
|
||||
@@ -615,7 +615,7 @@ grub_net_dns_lookup (const char *name,
|
||||
grub_netbuff_free (nb);
|
||||
for (j = 0; j < send_servers; j++)
|
||||
grub_net_udp_close (sockets[j]);
|
||||
|
||||
|
||||
grub_free (sockets);
|
||||
|
||||
if (*data.naddresses)
|
||||
@@ -623,7 +623,7 @@ grub_net_dns_lookup (const char *name,
|
||||
if (data.dns_err)
|
||||
return grub_error (GRUB_ERR_NET_NO_DOMAIN,
|
||||
N_("no DNS record found"));
|
||||
|
||||
|
||||
if (err)
|
||||
{
|
||||
grub_errno = err;
|
||||
|
||||
Reference in new issue
Block a user