diff options
author | DJ Delorie <dj@redhat.com> | 2005-06-02 03:05:03 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-06-02 03:05:03 +0000 |
commit | f09c53c96cc7669ae8f5984bf794ca51ae0d696f (patch) | |
tree | 5600dd77f1c233b1d51bc52eddb8487944c91f98 /include | |
parent | f9fb1149d5b1c0c15f9a554677019dbc5426ed83 (diff) | |
download | newlib-f09c53c96cc7669ae8f5984bf794ca51ae0d696f.zip newlib-f09c53c96cc7669ae8f5984bf794ca51ae0d696f.tar.gz newlib-f09c53c96cc7669ae8f5984bf794ca51ae0d696f.tar.bz2 |
merge from gcc
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/libiberty.h | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index c9c1f3a..ae00e32 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2005-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * libiberty.h (vsnprintf): Add format attribute. + 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * ansidecl.h: Add ATTRIBUTE_FPTR_PRINTF. diff --git a/include/libiberty.h b/include/libiberty.h index 75cbedc..a9a75ea 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -527,8 +527,7 @@ extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2; /* Like vsprintf but provides a pointer to malloc'd storage, which must be freed by the caller. */ -extern int vasprintf (char **, const char *, va_list) - ATTRIBUTE_PRINTF(2,0); +extern int vasprintf (char **, const char *, va_list) ATTRIBUTE_PRINTF(2,0); #endif #if defined(HAVE_DECL_SNPRINTF) && !HAVE_DECL_SNPRINTF @@ -538,7 +537,7 @@ extern int snprintf (char *, size_t, const char *, ...) ATTRIBUTE_PRINTF_3; #if defined(HAVE_DECL_VSNPRINTF) && !HAVE_DECL_VSNPRINTF /* Like vsprintf but prints at most N characters. */ -extern int vsnprintf (char *, size_t, const char *, va_list); +extern int vsnprintf (char *, size_t, const char *, va_list) ATTRIBUTE_PRINTF(3,0); #endif #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0])) |