bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] remove duplicate #include directives


From: Jim Meyering
Subject: [PATCH] remove duplicate #include directives
Date: Sun, 31 Aug 2008 16:41:02 +0200

>From d9b9f07a096ccd2e94339f7b531e4ef0b9290019 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sun, 31 Aug 2008 16:24:24 +0200
Subject: [PATCH] remove duplicate #include directives

* lib/putenv.c: Remove duplicate #include <stdlib.h>.
* lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
---
 ChangeLog        |    6 ++++++
 lib/chdir-long.c |    3 +--
 lib/putenv.c     |    1 -
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 55fe08e..99ab461 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-31  Jim Meyering  <address@hidden>
+
+       remove duplicate #include directives
+       * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
+       * lib/putenv.c: Remove duplicate #include <stdlib.h>.
+
 2008-08-31  Bruno Haible  <address@hidden>

        New module 'sigpipe-die'.
diff --git a/lib/chdir-long.c b/lib/chdir-long.c
index aeae252..291b58c 100644
--- a/lib/chdir-long.c
+++ b/lib/chdir-long.c
@@ -1,5 +1,5 @@
 /* provide a chdir function that tries not to fail due to ENAMETOOLONG
-   Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -205,7 +205,6 @@ chdir_long (char *dir)

 #if TEST_CHDIR

-# include <stdio.h>
 # include "closeout.h"
 # include "error.h"

diff --git a/lib/putenv.c b/lib/putenv.c
index d0573c6..cc14b93 100644
--- a/lib/putenv.c
+++ b/lib/putenv.c
@@ -31,7 +31,6 @@
 # define __set_errno(ev) ((errno) = (ev))
 #endif

-#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>

--
1.6.0.1.157.g7df43




reply via email to

[Prev in Thread] Current Thread [Next in Thread]