mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-15 21:44:36 +03:00
Remove superfluous 'extern's from function declarations.
Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
This commit is contained in:
12
XAlloc.h
12
XAlloc.h
@ -9,13 +9,13 @@
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
extern void fail(void);
|
||||
void fail(void);
|
||||
|
||||
extern void* xMalloc(size_t size);
|
||||
void* xMalloc(size_t size);
|
||||
|
||||
extern void* xCalloc(size_t nmemb, size_t size);
|
||||
void* xCalloc(size_t nmemb, size_t size);
|
||||
|
||||
extern void* xRealloc(void* ptr, size_t size);
|
||||
void* xRealloc(void* ptr, size_t size);
|
||||
|
||||
#undef xAsprintf
|
||||
|
||||
@ -36,9 +36,9 @@ extern void* xRealloc(void* ptr, size_t size);
|
||||
#endif
|
||||
#if (__has_attribute(nonnull) || \
|
||||
((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)))
|
||||
extern char* xStrdup_(const char* str) __attribute__((nonnull));
|
||||
char* xStrdup_(const char* str) __attribute__((nonnull));
|
||||
#endif // __has_attribute(nonnull) || GNU C 3.3 or later
|
||||
|
||||
extern char* xStrdup_(const char* str);
|
||||
char* xStrdup_(const char* str);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user