summaryrefslogtreecommitdiffstats
path: root/devel/ossp-cfg/files/patch-cfg_node.c
blob: 360cfe03e60ffbf2779e61b4279c5d5e15c2409c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- cfg_node.c.orig	Sun Jul 28 07:06:03 2002
+++ cfg_node.c	Mon Feb  3 15:15:27 2003
@@ -33,6 +33,7 @@
 #include <stdarg.h>
 #include <unistd.h>
 #include <limits.h>
+#include <sys/types.h>
 
 #include "cfg_main.h"
 #include "cfg_node.h"
@@ -443,8 +444,9 @@
         fprintf(stderr, "step2: child node 0x%lx\n", (unsigned long)node);
         do {
             if (node->token != NULL) {
+                size_t l;
                 token = node->token;
-                size_t l = strlen(token);
+		l = strlen(token);
                 fprintf(stderr, "step2: child node: \"%s\"\n", token);
                 if (   (l == 1 && l == nSel && token[0] == '*')
                     || (l == nSel && strncmp(token, cpSel, nSel) == 0)) {
OpenPOWER on IntegriCloud