26 lines
575 B
Plaintext
26 lines
575 B
Plaintext
$OpenBSD: patch-dclock_c,v 1.1 2004/05/21 10:48:48 xsa Exp $
|
|
--- dclock.c.orig 2004-05-19 15:22:58.000000000 +0200
|
|
+++ dclock.c 2004-05-19 15:22:58.000000000 +0200
|
|
@@ -82,13 +82,14 @@ static XtActionsRec actionsList[] = {
|
|
{ "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 @@ char *argv[];
|
|
|
|
XtRealizeWidget(toplevel);
|
|
XtMainLoop();
|
|
+ return(0);
|
|
}
|