[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Prefer <config.h> over "config.h". See autoconf doc for explanation.
From: |
Jim Meyering |
Subject: |
Prefer <config.h> over "config.h". See autoconf doc for explanation. |
Date: |
Fri, 25 Jan 2008 21:52:24 +0100 |
FYI, a couple uses of "config.h" snuck in.
I've just converted them:
diff --git a/ChangeLog b/ChangeLog
index a8718ea..91f57ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-25 Jim Meyering <address@hidden>
+
+ Prefer <config.h> over "config.h". See autoconf doc for explanation.
+ * lib/poll.c: Include <config.h>, not "config.h".
+ * tests/test-getaddrinfo.c: Likewise.
+
2008-01-25 Simon Josefsson <address@hidden>
* modules/sockets-tests: New file.
diff --git a/lib/poll.c b/lib/poll.c
index ed81dba..50a0803 100644
--- a/lib/poll.c
+++ b/lib/poll.c
@@ -1,7 +1,7 @@
/* Emulation for poll(2)
Contributed by Paolo Bonzini.
- Copyright 2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc.
+ Copyright 2001, 2002, 2003, 2006, 2007, 2008 Free Software Foundation, Inc.
This file is part of gnulib.
@@ -19,7 +19,7 @@
with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
-#include "config.h"
+#include <config.h>
#include <sys/types.h>
#include "poll.h"
@@ -132,7 +132,7 @@ poll (pfd, nfd, timeout)
maxfd = pfd[i].fd;
/* Windows use a linear array of sockets (of size FD_SETSIZE). The
- descriptor value is not used to address the array. */
+ descriptor value is not used to address the array. */
#if defined __CYGWIN__ || (!defined _WIN32 && !defined __WIN32__)
if (maxfd > FD_SETSIZE)
{
diff --git a/tests/test-getaddrinfo.c b/tests/test-getaddrinfo.c
index 7763f43..00a980b 100644
--- a/tests/test-getaddrinfo.c
+++ b/tests/test-getaddrinfo.c
@@ -1,6 +1,6 @@
/* Test the getaddrinfo module.
- Copyright (C) 2006-2007 Free Software Foundation, Inc.
+ Copyright (C) 2006-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
@@ -17,7 +17,7 @@
/* Written by Simon Josefsson. */
-#include "config.h"
+#include <config.h>
#include "getaddrinfo.h"
#include "inet_ntop.h"
#include <stdio.h>
--
1.5.4.rc4.26.g228a
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Prefer <config.h> over "config.h". See autoconf doc for explanation.,
Jim Meyering <=