[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gnulib] Re: strnlen.h needed?
From: |
Simon Josefsson |
Subject: |
[bug-gnulib] Re: strnlen.h needed? |
Date: |
Mon, 14 Mar 2005 15:44:12 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
All modules that use strnlen need to be updated as well. Fortunately,
this was simple, and will clean up strndup.c as well.
2005-03-14 Simon Josefsson <address@hidden>
* strndup.c: Include strnlen.h.
--- strndup.c 11 Sep 2003 10:43:46 +0200 1.10
+++ strndup.c 14 Mar 2005 15:42:18 +0100
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 2000, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 2000, 2003, 2005 Free Software Foundation,
Inc.
NOTE: The canonical source of this file is maintained with the GNU C
Library.
Bugs can be reported to address@hidden
@@ -24,12 +24,8 @@
#include <stdlib.h>
#include <string.h>
-#ifndef HAVE_DECL_STRNLEN
-"this configure-time declaration test was not run"
-#endif
-#if !HAVE_DECL_STRNLEN
-size_t strnlen ();
-#endif
+/* Get strnlen. */
+#include "strnlen.h"
#undef __strndup
#undef strndup