summaryrefslogtreecommitdiffstats
path: root/src/include/string.h
diff options
context:
space:
mode:
authorHolger Lubitz2007-08-20 20:29:58 +0200
committerHolger Lubitz2007-08-20 20:29:58 +0200
commit8bb295e3fd54a59b554ff5e2ff2d510ebf32f5f5 (patch)
tree6992251360fcae676a02cb2a08040a9e49e0f35e /src/include/string.h
parentuse malloc attribute (diff)
downloadipxe-8bb295e3fd54a59b554ff5e2ff2d510ebf32f5f5.tar.gz
ipxe-8bb295e3fd54a59b554ff5e2ff2d510ebf32f5f5.tar.xz
ipxe-8bb295e3fd54a59b554ff5e2ff2d510ebf32f5f5.zip
use malloc attribute
Diffstat (limited to 'src/include/string.h')
-rw-r--r--src/include/string.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/string.h b/src/include/string.h
index 210c3753..a2894a3a 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -41,9 +41,9 @@ int __pure memcmp(const void * cs,const void * ct,
void * __pure memscan(const void * addr, int c, size_t size) __nonnull;
char * __pure strstr(const char * s1,const char * s2) __nonnull;
void * __pure memchr(const void *s, int c, size_t n) __nonnull;
-char * strdup(const char *s) __nonnull;
-char * strndup(const char *s, size_t n) __nonnull;
+char * __malloc strdup(const char *s) __nonnull;
+char * __malloc strndup(const char *s, size_t n) __nonnull;
-extern const char * strerror ( int errno );
+extern const char * __pure strerror ( int errno );
#endif /* ETHERBOOT_STRING */