Parcourir la source

libdpkg: fix misspelling of __attribute__((const))

gcc does not recognize __attribute__((constant)).

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Guillem Jover <guillem@debian.org>
Jonathan Nieder il y a 17 ans
Parent
commit
3e5ce0a54a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/dpkg/macros.h

+ 1 - 1
lib/dpkg/macros.h

@@ -26,7 +26,7 @@
 
 
 #if HAVE_C_ATTRIBUTE
 #if HAVE_C_ATTRIBUTE
 #define DPKG_ATTR_UNUSED	__attribute__((unused))
 #define DPKG_ATTR_UNUSED	__attribute__((unused))
-#define DPKG_ATTR_CONST		__attribute__((constant))
+#define DPKG_ATTR_CONST		__attribute__((const))
 #define DPKG_ATTR_NORET		__attribute__((noreturn))
 #define DPKG_ATTR_NORET		__attribute__((noreturn))
 #define DPKG_ATTR_PRINTF(n)	__attribute__((format(printf, n, n + 1)))
 #define DPKG_ATTR_PRINTF(n)	__attribute__((format(printf, n, n + 1)))
 #else
 #else