1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Subject: fix all implicit-int warnings
Author: Ricardo Mones <mones@debian.org>
--- a/Dclock.c
+++ b/Dclock.c
@@ -66,7 +66,7 @@ static Pixmap old_pix[4];
static int old_digs[4];
static struct tm before;
static char *saved_date;
-static cur_position; /* outline current digit for setting alarm */
+static int cur_position; /* outline current digit for setting alarm */
static struct { int hrs, mins; } Alarm;
static int TopOffset = 0;
@@ -2181,7 +2181,7 @@ set_alarm(w, event)
DclockWidget w;
XButtonEvent *event;
{
- static saved_secs, saved_miltime, saved_fade, saved_blink;
+ static int saved_secs, saved_miltime, saved_fade, saved_blink;
if (event->button == 3) {
if (!(w->dclock.display_time = !w->dclock.display_time)) {
diff --git a/dclock.c b/dclock.c
index c38556f..57b3a9a 100644
--- a/dclock.c
+++ b/dclock.c
@@ -114,8 +114,10 @@ static XtActionsRec actionsList[] = {
{ "quit", quit },
};
+int
main(argc, argv)
char *argv[];
+int argc;
{
XtAppContext app;
Widget toplevel, clock_w;
|