http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb94c14
)
strdup and strndup call malloc and are not pure
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Thu, 2 Aug 2007 01:04:44 +0000
(
03:04
+0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Thu, 2 Aug 2007 01:04:44 +0000
(
03:04
+0200)
src/include/string.h
patch
|
blob
|
history
diff --git
a/src/include/string.h
b/src/include/string.h
index
201ae75
..
210c375
100644
(file)
--- a/
src/include/string.h
+++ b/
src/include/string.h
@@
-41,8
+41,8
@@
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 *
__pure
strdup(const char *s) __nonnull;
-char *
__pure
strndup(const char *s, size_t n) __nonnull;
+char * strdup(const char *s) __nonnull;
+char * strndup(const char *s, size_t n) __nonnull;
extern const char * strerror ( int errno );