gethostid: Do not include alloca.h

Message ID 20230424193058.1784229-1-josimmon@redhat.com
State Committed
Commit 19fdc3542b465e3d9563bfd72e40c4b103a2cafe
Headers
Series gethostid: Do not include alloca.h |

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 24, 2023, 7:30 p.m. UTC
  Nothing from alloca.h is being used here.
---
 sysdeps/unix/sysv/linux/gethostid.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Siddhesh Poyarekar April 25, 2023, 2:33 p.m. UTC | #1
On 2023-04-24 15:30, Joe Simmons-Talbott via Libc-alpha wrote:
> Nothing from alloca.h is being used here.
> ---

LGTM.

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

>   sysdeps/unix/sysv/linux/gethostid.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c
> index e717d6a27e..c8d3361d34 100644
> --- a/sysdeps/unix/sysv/linux/gethostid.c
> +++ b/sysdeps/unix/sysv/linux/gethostid.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 <fcntl.h>
>   #include <unistd.h>
  

Patch

diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c
index e717d6a27e..c8d3361d34 100644
--- a/sysdeps/unix/sysv/linux/gethostid.c
+++ b/sysdeps/unix/sysv/linux/gethostid.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 <fcntl.h>
 #include <unistd.h>