commit 72dcacbcabfbf2364b098b8ee1862319e59e352a
parent f638f488b5fde5edecc893204ee8bb34bae646b6
Author: Kyle Milz <krwmilz@gmail.com>
Date: Sat, 11 Mar 2023 18:51:20 +0000
ansi function signatures
Diffstat:
M | util.c | | | 28 | ++++++---------------------- |
1 file changed, 6 insertions(+), 22 deletions(-)
diff --git a/util.c b/util.c
@@ -106,8 +106,7 @@ xmemdup(const char *str, size_t len)
*/
void
-expandline(n)
- size_t n;
+expandline(size_t n)
{
size_t newlen = n + 128;
@@ -121,8 +120,7 @@ expandline(n)
*/
void
-alloc_bitmap(bitmap)
- struct bitmap *bitmap;
+alloc_bitmap(struct bitmap *bitmap)
{
unsigned int size;
@@ -133,8 +131,6 @@ alloc_bitmap(bitmap)
}
-#ifndef KPATHSEA
-
/*
* Put a variable in the environment or abort on error.
*/
@@ -146,8 +142,6 @@ xputenv(const char *var, const char *value)
return;
}
-#endif /* not KPATHSEA */
-
/*
* Hopefully a self-explanatory name. This code assumes the second
@@ -212,9 +206,7 @@ xpipe(int *fd)
*/
const struct passwd *
-ff_getpw(pp, p_end)
- const char **pp;
- const char *p_end;
+ff_getpw(const char **pp, const char *p_end)
{
const char *p = *pp;
const char *p1;
@@ -263,9 +255,7 @@ ff_getpw(pp, p_end)
*/
unsigned long
-num(fp, size)
- FILE *fp;
- int size;
+num(FILE *fp, int size)
{
long x = 0;
@@ -274,9 +264,7 @@ num(fp, size)
}
long
-snum(fp, size)
- FILE *fp;
- int size;
+snum(FILE *fp, int size)
{
long x;
@@ -294,11 +282,7 @@ snum(fp, size)
*/
struct avl *
-avladd(key, key_len, headp, size)
- const char *key;
- size_t key_len;
- struct avl **headp;
- size_t size;
+avladd(const char *key, size_t key_len, struct avl **headp, size_t size)
{
struct avl *ap;
struct avl **app;