Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/wpa/dist/src/utils avoid variable array allocat...



details:   https://anonhg.NetBSD.org/src/rev/78fdb01faded
branches:  trunk
changeset: 333060:78fdb01faded
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 17 02:57:42 2014 +0000

description:
avoid variable array allocation that gcc can't figure out.

diffstat:

 external/bsd/wpa/dist/src/utils/os_unix.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a45960e9fd7b -r 78fdb01faded external/bsd/wpa/dist/src/utils/os_unix.c
--- a/external/bsd/wpa/dist/src/utils/os_unix.c Thu Oct 16 23:00:38 2014 +0000
+++ b/external/bsd/wpa/dist/src/utils/os_unix.c Fri Oct 17 02:57:42 2014 +0000
@@ -570,7 +570,7 @@
 
        if (pid == 0) {
                /* run the external command in the child process */
-               const int MAX_ARG = 30;
+#define MAX_ARG 30
                char *_program, *_arg, *pos;
                char *argv[MAX_ARG + 1];
                int i;



Home | Main Index | Thread Index | Old Index