commit f798f9a8dbe3be6f2181b38ef6c9292d79ce4623
parent 3c2e3773f8e8c263809f44eaf05d892627b506f2
Author: ssnf <ssnf@ssnf.xyz>
Date: Fri, 6 Dec 2024 01:35:58 +0000
fix function prototype declations
Diffstat:
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/posix.c b/posix.c
@@ -4,14 +4,14 @@
#include "sim.h"
-void win_end();
-void win_init();
-void win_query();
+void win_end(void);
+void win_init(Window* w);
+void win_query(Window* w);
static struct termios initial_state;
void
-win_end()
+win_end(void)
{
printf(ED CSI "H");
tcsetattr(0, TCSAFLUSH, &initial_state);
diff --git a/sim.c b/sim.c
@@ -93,7 +93,7 @@ static void delete(int arg);
static void dot(int arg);
static void redo(int arg);
static void escape(int c);
-static void init();
+static void init(void);
static void input(String* s, ushort line, char* msg);
static void insert(int arg);
static int isword(uchar c);
@@ -112,8 +112,8 @@ static void fr_update(void);
static void fr_zero(Frame*);
static void gmove(int arg);
static void paste(int arg);
-static void pline();
-static void resize();
+static void pline(int arg);
+static void resize(void);
static void search(int arg);
static int selection(int arg);
static void str_init(String* p);
@@ -509,7 +509,7 @@ insert(int arg)
}
static void
-init()
+init(void)
{
uint i;
@@ -693,7 +693,7 @@ fr_insure(Frame* fr, ushort n)
}
static void
-fr_update()
+fr_update(void)
{
Posn p0, p1;
uint half;
@@ -858,7 +858,7 @@ paste(int arg)
}
static void
-pline()
+pline(int arg)
{
ulong i, j, c, l;
@@ -894,7 +894,7 @@ pline()
}
static void
-resize()
+resize(void)
{
Window wt;
diff --git a/sim.h b/sim.h
@@ -15,6 +15,6 @@ typedef struct {
void die(char* fmt, ...);
void* emalloc(ulong n);
void* erealloc(void* p, ulong n);
-void win_end();
-void win_init();
+void win_end(void);
+void win_init(Window* w);
void win_query(Window* w);