summaryrefslogtreecommitdiffstats
path: root/usr.bin/mklocale
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-12-29 22:53:27 +0000
committered <ed@FreeBSD.org>2009-12-29 22:53:27 +0000
commitb9ca89bfc495774b5fe49e23a272c721c840f68b (patch)
tree2e35e76a520e919173f604f9ba0f30358443ed4a /usr.bin/mklocale
parent86ca9a5a9bdaa4a662de58157f311ce58029b75a (diff)
downloadFreeBSD-src-b9ca89bfc495774b5fe49e23a272c721c840f68b.zip
FreeBSD-src-b9ca89bfc495774b5fe49e23a272c721c840f68b.tar.gz
ANSIfy almost all applications that use WARNS=6.
I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application.
Diffstat (limited to 'usr.bin/mklocale')
-rw-r--r--usr.bin/mklocale/lex.l2
-rw-r--r--usr.bin/mklocale/yacc.y31
2 files changed, 10 insertions, 23 deletions
diff --git a/usr.bin/mklocale/lex.l b/usr.bin/mklocale/lex.l
index eeed535..34ff627 100644
--- a/usr.bin/mklocale/lex.l
+++ b/usr.bin/mklocale/lex.l
@@ -170,7 +170,7 @@ ENCODING { return(ENCODING); }
#if !defined(yywrap)
int
-yywrap()
+yywrap(void)
{
return(1);
}
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y
index 344af22..b86ab88 100644
--- a/usr.bin/mklocale/yacc.y
+++ b/usr.bin/mklocale/yacc.y
@@ -266,22 +266,20 @@ main(int ac, char *av[])
}
static void
-usage()
+usage(void)
{
fprintf(stderr, "usage: mklocale [-d] [-o output] [source]\n");
exit(1);
}
void
-yyerror(s)
- const char *s;
+yyerror(const char *s)
{
fprintf(stderr, "%s\n", s);
}
static void *
-xmalloc(sz)
- unsigned int sz;
+xmalloc(unsigned int sz)
{
void *r = malloc(sz);
if (!r)
@@ -290,8 +288,7 @@ xmalloc(sz)
}
static uint32_t *
-xlalloc(sz)
- unsigned int sz;
+xlalloc(unsigned int sz)
{
uint32_t *r = (uint32_t *)malloc(sz * sizeof(uint32_t));
if (!r)
@@ -300,9 +297,7 @@ xlalloc(sz)
}
static uint32_t *
-xrelalloc(old, sz)
- uint32_t *old;
- unsigned int sz;
+xrelalloc(uint32_t *old, unsigned int sz)
{
uint32_t *r = (uint32_t *)realloc((char *)old,
sz * sizeof(uint32_t));
@@ -312,10 +307,7 @@ xrelalloc(old, sz)
}
void
-set_map(map, list, flag)
- rune_map *map;
- rune_list *list;
- uint32_t flag;
+set_map(rune_map *map, rune_list *list, uint32_t flag)
{
while (list) {
rune_list *nlist = list->next;
@@ -325,9 +317,7 @@ set_map(map, list, flag)
}
void
-set_digitmap(map, list)
- rune_map *map;
- rune_list *list;
+set_digitmap(rune_map *map, rune_list *list)
{
int32_t i;
@@ -347,10 +337,7 @@ set_digitmap(map, list)
}
void
-add_map(map, list, flag)
- rune_map *map;
- rune_list *list;
- uint32_t flag;
+add_map(rune_map *map, rune_list *list, uint32_t flag)
{
int32_t i;
rune_list *lr = 0;
@@ -555,7 +542,7 @@ add_map(map, list, flag)
}
static void
-dump_tables()
+dump_tables(void)
{
int x, first_d, curr_d;
rune_list *list;
OpenPOWER on IntegriCloud