openbsd-ports/misc/calentool/patches/patch-calentool_c

30 lines
821 B
Plaintext
Raw Normal View History

2003-06-17 22:47:59 -04:00
$OpenBSD: patch-calentool_c,v 1.1 2003/06/18 02:48:00 avsm Exp $
--- calentool.c.orig Wed Sep 30 03:41:22 1998
+++ calentool.c Wed Jun 18 03:41:50 2003
@@ -221,7 +221,7 @@ void create_icon ();
1998-09-30 12:27:52 -04:00
void set_cms();
#endif
-void main(argc,argv)
+int main(argc,argv)
int argc;
char *argv[];
{
2003-06-17 22:47:59 -04:00
@@ -898,6 +898,7 @@ char *argv[];
1998-09-30 12:27:52 -04:00
xv_main_loop(frame);
(void)leave((Notify_client)0, 0, (Notify_signal_mode)0);
+ return 0;
}
2003-06-17 22:47:59 -04:00
@@ -1017,7 +1018,7 @@ XErrorEvent *myerror;
1998-09-30 12:27:52 -04:00
fputs("\n ", stderr);
XGetErrorDatabaseText(mydisplay, "XlibMessage", "CurrentSerial",
"Current Serial #%d", error_mesg, 1024);
- fprintf(stderr, error_mesg, mydisplay->request);
+ fprintf(stderr, error_mesg, LastKnownRequestProcessed(mydisplay));
fputs("\n", stderr);
/** If we were debugging, this would be useful....