aboutsummaryrefslogtreecommitdiff
path: root/www/websh/files/patch-generic_interpool.c
blob: c07cde91ef613cfe1a5da5d9c437e6fc0295cda0 (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
--- ../generic/interpool.c	2009-07-15 08:15:16.000000000 -0400
+++ ../generic/interpool.c	2013-05-12 15:00:06.000000000 -0400
@@ -108,5 +108,4 @@
 {
 
-    int result = 0;
     LogPlugIn *logtoap = NULL;
     Tcl_Obj *code = NULL;
@@ -135,5 +134,5 @@
 
     /* now register here all websh modules */
-    result = Tcl_Init(webInterp->interp);
+    Tcl_Init(webInterp->interp);
     /* checkme: test result */
 
@@ -143,5 +142,5 @@
     Tcl_SetAssocData(webInterp->interp, WEB_APFUNCS_ASSOC_DATA, NULL, (ClientData *) apFuncs);
 
-    result = Websh_Init(webInterp->interp);
+    Websh_Init(webInterp->interp);
 
     /* also register the destrcutor, etc. functions, passing webInterp as
@@ -574,5 +573,5 @@
 #else /* APACHE2 */
 	    ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_ERR, 0,
-			 conf->server, Tcl_GetStringResult(conf->mainInterp));
+			 conf->server, "%s", Tcl_GetStringResult(conf->mainInterp));
 #endif /* APACHE2 */
 	    return 0;