summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-06-04 10:41:08 +0200
committerJim Meyering <meyering@redhat.com>2011-07-02 12:35:06 +0200
commit76d8e9abe18c3e3ed6dc37338b75140e06555cd5 (patch)
tree26742497b309c90ad8a320f17cbc95606f781f18 /lib
parente7734b4a66f0d860698538cef13e6392ff8fdaf7 (diff)
downloadcoreutils-76d8e9abe18c3e3ed6dc37338b75140e06555cd5.tar.xz
buffer_lcm: declare with _GL_ATTRIBUTE_CONST
* lib/buffer-lcm.h (buffer_lcm): Use _GL_ATTRIBUTE_CONST. * lib/buffer-lcm.c: Include <config.h>.
Diffstat (limited to 'lib')
-rw-r--r--lib/buffer-lcm.c1
-rw-r--r--lib/buffer-lcm.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/buffer-lcm.c b/lib/buffer-lcm.c
index 022a73117..87503afb9 100644
--- a/lib/buffer-lcm.c
+++ b/lib/buffer-lcm.c
@@ -17,6 +17,7 @@
/* Written by Paul Eggert. */
+#include <config.h>
#include "buffer-lcm.h"
/* Return a buffer size suitable for doing I/O with files whose block
diff --git a/lib/buffer-lcm.h b/lib/buffer-lcm.h
index 9a6cdf5f0..454c65be8 100644
--- a/lib/buffer-lcm.h
+++ b/lib/buffer-lcm.h
@@ -1,2 +1,2 @@
#include <stddef.h>
-size_t buffer_lcm (size_t, size_t, size_t);
+size_t buffer_lcm (size_t, size_t, size_t) _GL_ATTRIBUTE_CONST;