Browse Source

use malloc attribute

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
8bb295e3fd
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/include/string.h

+ 3
- 3
src/include/string.h View File

41
 void * __pure memscan(const void * addr, int c, size_t size) __nonnull;
41
 void * __pure memscan(const void * addr, int c, size_t size) __nonnull;
42
 char * __pure strstr(const char * s1,const char * s2) __nonnull;
42
 char * __pure strstr(const char * s1,const char * s2) __nonnull;
43
 void * __pure memchr(const void *s, int c, size_t n) __nonnull;
43
 void * __pure memchr(const void *s, int c, size_t n) __nonnull;
44
-char * strdup(const char *s) __nonnull;
45
-char * strndup(const char *s, size_t n) __nonnull;
44
+char * __malloc strdup(const char *s) __nonnull;
45
+char * __malloc strndup(const char *s, size_t n) __nonnull;
46
 
46
 
47
-extern const char * strerror ( int errno );
47
+extern const char * __pure strerror ( int errno );
48
 
48
 
49
 #endif /* ETHERBOOT_STRING */
49
 #endif /* ETHERBOOT_STRING */

Loading…
Cancel
Save