From c98f00a93b3d0246f0986d6da718e670a3d4db68 Mon Sep 17 00:00:00 2001
From: Gregory Nutt
Header File Idempotence. - C header file must protect against multipleinclusion through the use of macros that "guard" against multiple definitions if the header file is included multiple times. + C header file must protect against multiple inclusion through the use of macros that "guard" against multiple definitions if the header file is included multiple times.
- Each header file must contain the following pre-processor commands near the beginning of the header file: Between the file header and the "Included Files" block comment. + Each header file must contain the following pre-processor conditional logic near the beginning of the header file: Between the file header and the "Included Files" block comment. For example,
diff --git a/net/tcp/tcp_input.c b/net/tcp/tcp_input.c index 19c207f655..27ab34e1b3 100644 --- a/net/tcp/tcp_input.c +++ b/net/tcp/tcp_input.c @@ -71,9 +71,9 @@ * Handle incoming TCP input * * Parameters: - * dev - The device driver structure containing the received TCP packet. - * tcp - A pointer to the TCP header in the packet - * tcpiplen - Combined length of the IP and TCP headers + * dev - The device driver structure containing the received TCP packet. + * tcp - A pointer to the TCP header in the packet + * iplen - Combined length of the IP and TCP headers * * Return: * None diff --git a/net/udp/udp_input.c b/net/udp/udp_input.c index 640fd617ad..75d0ff40a8 100644 --- a/net/udp/udp_input.c +++ b/net/udp/udp_input.c @@ -67,9 +67,9 @@ * Handle incoming UDP input * * Parameters: - * dev - The device driver structure containing the received UDP packet - * udp - A pointer to the UDP header in the packet - * udpiplen - Length of the IP and UDP headers + * dev - The device driver structure containing the received UDP packet + * udp - A pointer to the UDP header in the packet + * iplen - Length of the IP and UDP headers * * Return: * OK The packet has been processed and can be deleted