summaryrefslogtreecommitdiff
path: root/graphics/ayam/files/patch-togl_togl.c
blob: 816b1dad4abc010a7a4967057d4b603a9f8bc8cd (plain) (blame)
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
--- togl/togl.c.orig	2007-12-17 19:12:44.000000000 +0100
+++ togl/togl.c	2007-12-17 19:14:18.000000000 +0100
@@ -709,7 +709,7 @@
    }
 #endif
 
-   Tcl_CreateCommand(interp, "togl", Togl_Cmd,
+   Tcl_CreateCommand(interp, "togl", (Tcl_CmdProc *)Togl_Cmd,
                      (ClientData) Tk_MainWindow(interp), NULL);
    Tcl_InitHashTable(&CommandTable, TCL_STRING_KEYS);
 
@@ -941,7 +941,7 @@
    int oldAuxNumber   = togl->AuxNumber;
 
    if (Tk_ConfigureWidget(interp, togl->TkWin, configSpecs,
-                          argc, argv, (char *)togl, flags) == TCL_ERROR) {
+                          argc, (const char **)argv, (char *)togl, flags) == TCL_ERROR) {
       return(TCL_ERROR);
    }
    /*fprintf(stderr,"hier %d %d %d\n", togl->TkWin, togl->Width, togl->Height);*/
@@ -1154,7 +1154,7 @@
 
    /* Create command event handler */
    togl->widgetCmd = Tcl_CreateCommand(interp, Tk_PathName(tkwin),
-				       Togl_Widget, (ClientData)togl,
+				       (Tcl_CmdProc *)Togl_Widget, (ClientData)togl,
 				       (Tcl_CmdDeleteProc*) ToglCmdDeletedProc);
    Tk_CreateEventHandler(tkwin,
                          ExposureMask | StructureNotifyMask,