Skip to content

Commit

Permalink
fmt_*.c: convert to prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed May 23, 2020
1 parent ada4bb3 commit 72c58ae
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions 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;
Expand Down
3 changes: 1 addition & 2 deletions 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;
Expand Down
2 changes: 1 addition & 1 deletion 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);
}
2 changes: 1 addition & 1 deletion 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);
Expand Down
2 changes: 1 addition & 1 deletion 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;
Expand Down

0 comments on commit 72c58ae

Please sign in to comment.