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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
--- firestarter.c.orig 2003-02-10 15:21:45.000000000 -0800
+++ firestarter.c 2003-02-10 15:20:25.000000000 -0800
@@ -58,6 +58,7 @@
stop_firewall (void)
{
gint retval;
+ gchar *error;
gchar *sbin;
gchar *command = NULL;
@@ -86,7 +87,7 @@
} else {
retval = WEXITSTATUS (retval);
- gchar *error = g_strdup (_("Failed to stop the firewall\n\n"));
+ error = g_strdup (_("Failed to stop the firewall\n\n"));
if (!CONSOLE)
error = g_strconcat ("<span weight=\"bold\" size=\"larger\">", error, "</span>", NULL);
@@ -112,6 +113,7 @@
start_firewall (void)
{
gint retval;
+ gchar *error;
gchar *command = g_strjoin (NULL, "/bin/sh ",
FIRESTARTER_RULES_DIR "/firestarter/firewall.sh",
NULL);
@@ -126,7 +128,7 @@
} else {
retval = WEXITSTATUS (retval);
- gchar *error = g_strdup (_("Failed to start the firewall\n\n"));
+ error = g_strdup (_("Failed to start the firewall\n\n"));
if (!CONSOLE)
error = g_strconcat ("<span weight=\"bold\" size=\"larger\">", error, "</span>", NULL);
@@ -165,6 +167,7 @@
{
gint retval;
gchar *sbin;
+ gchar *error;
gchar *command;
if (!CONSOLE) {
@@ -191,7 +194,7 @@
} else {
retval = WEXITSTATUS (retval);
- gchar *error = g_strdup (_("Failed to enter halted firewall mode\n\n"));
+ error = g_strdup (_("Failed to enter halted firewall mode\n\n"));
if (!CONSOLE)
error = g_strconcat ("<span weight=\"bold\" size=\"larger\">", error, "</span>", NULL);
|