summaryrefslogtreecommitdiff
path: root/net/omnitty/files/patch-machmgr.c
blob: 7700dfa97f08906f8239b1d49733e8b2112c0544 (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
--- machmgr.c.orig	2005-10-25 22:04:01 UTC
+++ machmgr.c
@@ -26,7 +26,7 @@
 #include "machine.h"
 #include "minibuf.h"
 #include <string.h>
-#include <alloca.h>
+#include <stdlib.h>
 
 #define MACHINE_MAX 256
 
@@ -261,5 +261,13 @@ void machmgr_delete_dead() {
    int i;
    for (i = machcount - 1; i >= 0; i--)
       if (!machs[i]->alive) machmgr_delete(i);
+}
+
+void machmgr_toggle_tag_all(bool ignore_dead) {
+   int i;
+   for (i = 0; i < machcount; i++) {
+      if (!ignore_dead || machs[i]->alive)
+	 machs[i]->tag = !machs[i]->tag;
+   }
 }