aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-01-10 12:08:26 -0500
committerB. Watson <urchlay@slackware.uk>2024-01-10 12:08:26 -0500
commit9c974d61abf5d0cf22554e574af135d4ca7065c0 (patch)
treea4fbb549b66c96ccb04d72e4459df7b78cac4529
parent4b982efaa978ef0bb9f637b06e112cada5ed64e7 (diff)
downloadhcalc-9c974d61abf5d0cf22554e574af135d4ca7065c0.tar.gz
foo() => foo(void)
-rw-r--r--draw.c4
-rw-r--r--hcalc.h6
-rw-r--r--input.c2
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;