summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-16 23:09:32 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-16 23:09:32 +0000
commit24f818725bb7eeffff055fe5b5a0cd0bdf490bca (patch)
treeac0fc0406ca926319e182be7ad266033129406db /libc/misc
parent17d53dd7b38b024c5e1471610a21092fa73d13da (diff)
Remove all trailing ; after *_alias and change 2 to use weak_alias instead of __attribute__ ...
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/internals/__uClibc_main.c2
-rw-r--r--libc/misc/internals/errno.c4
-rw-r--r--libc/misc/time/time.c2
-rw-r--r--libc/misc/wchar/wchar.c10
4 files changed, 6 insertions, 12 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index 6cd2eaa01..09922dbf4 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -72,7 +72,7 @@ extern void weak_function __pthread_initialize_minimal(void);
* environ symbol is also included.
*/
char **__environ = 0;
-weak_alias(__environ, environ);
+weak_alias(__environ, environ)
size_t __pagesize = 0;
const char *__progname = 0;
diff --git a/libc/misc/internals/errno.c b/libc/misc/internals/errno.c
index f2424eae0..b08478d44 100644
--- a/libc/misc/internals/errno.c
+++ b/libc/misc/internals/errno.c
@@ -13,5 +13,5 @@ int _errno = 0;
int _h_errno = 0;
#endif
-weak_alias (_errno, errno)
-weak_alias(_h_errno, h_errno);
+weak_alias(_errno, errno)
+weak_alias(_h_errno, h_errno)
diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c
index fac85638e..74b38f99e 100644
--- a/libc/misc/time/time.c
+++ b/libc/misc/time/time.c
@@ -754,7 +754,7 @@ time_t mktime(struct tm *timeptr)
/* Another name for `mktime'. */
/* time_t timelocal(struct tm *tp) */
-weak_alias(mktime,timelocal);
+weak_alias(mktime,timelocal)
#endif
/**********************************************************************/
diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c
index 423bc4989..2535b5fff 100644
--- a/libc/misc/wchar/wchar.c
+++ b/libc/misc/wchar/wchar.c
@@ -788,10 +788,7 @@ size_t attribute_hidden __mbsnrtowcs(wchar_t *__restrict dst, const char **__res
}
return len - count;
}
-
-size_t mbsnrtowcs(wchar_t *__restrict dst, const char **__restrict src,
- size_t NMC, size_t len, mbstate_t *__restrict ps)
- __attribute__ ((__weak__, __alias__("__mbsnrtowcs")));
+weak_alias(__mbsnrtowcs,mbsnrtowcs)
#endif
/**********************************************************************/
@@ -910,10 +907,7 @@ size_t attribute_hidden __wcsnrtombs(char *__restrict dst, const wchar_t **__res
}
return len - count;
}
-
-size_t wcsnrtombs(char *__restrict dst, const wchar_t **__restrict src,
- size_t NWC, size_t len, mbstate_t *__restrict ps)
- __attribute__ ((__weak__, __alias__("__wcsnrtombs")));
+weak_alias(__wcsnrtombs,wcsnrtombs)
#endif
/**********************************************************************/