changeset 10384:adc4d1a5982d

remove duplicate #include directives * lib/putenv.c: Remove duplicate #include <stdlib.h>. * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
author Jim Meyering <meyering@redhat.com>
date Sun, 31 Aug 2008 16:24:24 +0200
parents 17bbd0d8ece3
children 83fb5018d6e2
files ChangeLog lib/chdir-long.c lib/putenv.c
diffstat 3 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-31  Jim Meyering  <meyering@redhat.com>
+
+	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  <bruno@clisp.org>
 
 	New module 'sigpipe-die'.
--- 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 @@
 
 #if TEST_CHDIR
 
-# include <stdio.h>
 # include "closeout.h"
 # include "error.h"
 
--- 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>