From 9c974d61abf5d0cf22554e574af135d4ca7065c0 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 10 Jan 2024 12:08:26 -0500 Subject: foo() => foo(void) --- draw.c | 4 ++-- hcalc.h | 6 +++--- input.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/draw.c b/draw.c index 7b782d8..1497e65 100644 --- a/draw.c +++ b/draw.c @@ -42,7 +42,7 @@ void redraw_chars() { } } -void redraw() { +void redraw(void) { XCopyArea(display, face, window, gc, 0, 0, widths[winsize], heights[winsize], 0, 0); @@ -88,7 +88,7 @@ void set_string(char *s) { } } -void send_current_display() { +void send_current_display(void) { char tmp[40], *tp = tmp; int i; XEvent e; diff --git a/hcalc.h b/hcalc.h index 6d0d568..62a5593 100644 --- a/hcalc.h +++ b/hcalc.h @@ -47,17 +47,17 @@ extern int quiet; void set_bits(int b); void set_string(char *s); -void redraw(); +void redraw(void); void key(char c); void button(int b, int x, int y); void complete_paste(unsigned char *s, int n); -void send_current_display(); +void send_current_display(void); void setup_x(void); void load_pixmaps(void); void process_input(); void load_config(void); void save_config(void); -void show_value(); +void show_value(void); void bell(void); void copy(void); void paste(void); diff --git a/input.c b/input.c index 777d33b..53e816d 100644 --- a/input.c +++ b/input.c @@ -70,7 +70,7 @@ void convert_number() { value *= sign; } -void show_value() { +void show_value(void) { char tmp[25], *tp; char commas[40], *cp, *dp; double v = value; -- cgit v1.2.3