if_index: Remove unneeded alloca.h include

Message ID 20230425142654.511300-1-josimmon@redhat.com
State Committed
Commit a3461d4923d92ba14cbd60072aeccb49fcb14da2
Headers
Series if_index: Remove unneeded alloca.h include |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Joe Simmons-Talbott April 25, 2023, 2:26 p.m. UTC
  Nothing is being used from this header.
---
 sysdeps/unix/sysv/linux/if_index.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Siddhesh Poyarekar April 25, 2023, 2:32 p.m. UTC | #1
On 2023-04-25 10:26, Joe Simmons-Talbott via Libc-alpha wrote:
> Nothing is being used from this header.

LGTM.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>

> ---
>   sysdeps/unix/sysv/linux/if_index.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/sysdeps/unix/sysv/linux/if_index.c b/sysdeps/unix/sysv/linux/if_index.c
> index ac22d0b742..432a3f9251 100644
> --- a/sysdeps/unix/sysv/linux/if_index.c
> +++ b/sysdeps/unix/sysv/linux/if_index.c
> @@ -15,7 +15,6 @@
>      License along with the GNU C Library; if not, see
>      <https://www.gnu.org/licenses/>.  */
>   
> -#include <alloca.h>
>   #include <errno.h>
>   #include <string.h>
>   #include <stdio.h>
  

Patch

diff --git a/sysdeps/unix/sysv/linux/if_index.c b/sysdeps/unix/sysv/linux/if_index.c
index ac22d0b742..432a3f9251 100644
--- a/sysdeps/unix/sysv/linux/if_index.c
+++ b/sysdeps/unix/sysv/linux/if_index.c
@@ -15,7 +15,6 @@ 
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <alloca.h>
 #include <errno.h>
 #include <string.h>
 #include <stdio.h>