openbsd-ports/x11/dclock/patches/patch-ad

25 lines
440 B
Plaintext

--- dclock.c.orig Fri Dec 31 20:22:30 1999
+++ dclock.c Fri Dec 31 20:25:17 1999
@@ -82,13 +82,14 @@
{ "quit", quit },
};
+int
main(argc, argv)
char *argv[];
{
Widget toplevel, clock_w;
char *name, *rindex();
- if (name = rindex(argv[0], '/'))
+ if ((name = rindex(argv[0], '/')))
name++;
else
name = argv[0];
@@ -105,4 +106,5 @@
XtRealizeWidget(toplevel);
XtMainLoop();
+ return(0);
}