nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 72c58ae8b2b8d5185449c120fd0844be1933a899
parent ada4bb3eddc37f74d9318b06551b601b62a45328
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Tue, 21 Apr 2020 20:54:17 +0200

fmt_*.c: convert to prototypes

Diffstat:
Mfmt_str.c | 3+--
Mfmt_strn.c | 3+--
Mfmt_uint.c | 2+-
Mfmt_uint0.c | 2+-
Mfmt_ulong.c | 2+-
5 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/fmt_str.c b/fmt_str.c @@ -1,7 +1,6 @@ #include "fmt.h" -unsigned int fmt_str(s,t) -register char *s; register char *t; +unsigned int fmt_str(char *s, char *t) { register unsigned int len; char ch; diff --git a/fmt_strn.c b/fmt_strn.c @@ -1,7 +1,6 @@ #include "fmt.h" -unsigned int fmt_strn(s,t,n) -register char *s; register char *t; register unsigned int n; +unsigned int fmt_strn(char *s, char *t, unsigned int n) { register unsigned int len; char ch; diff --git a/fmt_uint.c b/fmt_uint.c @@ -1,6 +1,6 @@ #include "fmt.h" -unsigned int fmt_uint(s,u) register char *s; register unsigned int u; +unsigned int fmt_uint(char *s, unsigned int u) { register unsigned long l; l = u; return fmt_ulong(s,l); } diff --git a/fmt_uint0.c b/fmt_uint0.c @@ -1,6 +1,6 @@ #include "fmt.h" -unsigned int fmt_uint0(s,u,n) char *s; unsigned int u; unsigned int n; +unsigned int fmt_uint0(char *s, unsigned int u, unsigned int n) { unsigned int len; len = fmt_uint(FMT_LEN,u); diff --git a/fmt_ulong.c b/fmt_ulong.c @@ -1,6 +1,6 @@ #include "fmt.h" -unsigned int fmt_ulong(s,u) register char *s; register unsigned long u; +unsigned int fmt_ulong(char *s, unsigned long u) { register unsigned int len; register unsigned long q; len = 1; q = u;