]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/newt-0.51.6-if1close.patch
Fix vnstat directory creation
[people/pmueller/ipfire-2.x.git] / src / patches / newt-0.51.6-if1close.patch
1 --- newt-0.51.6/form.c.orig 2004-10-15 11:17:35.042333181 -0400
2 +++ newt-0.51.6/form.c 2004-10-15 11:18:53.428533351 -0400
3 @@ -889,6 +889,7 @@
4 struct eventResult er;
5 int key, i, max;
6 int done = 0;
7 + int success;
8 fd_set readSet, writeSet, exceptSet;
9 struct timeval nextTimeout, now, timeout;
10 #ifdef USE_GPM
11 @@ -902,7 +903,7 @@
12 conn.minMod = 0;
13 conn.maxMod = 0;
14
15 - Gpm_Open(&conn, 0);
16 + success = Gpm_Open(&conn, 0);
17 #endif
18
19 newtFormSetSize(co);
20 @@ -1062,7 +1063,8 @@
21 }
22 newtRefresh();
23 #ifdef USE_GPM
24 - Gpm_Close();
25 + if (success > 0)
26 + Gpm_Close();
27 #endif
28 }
29