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/52d816d7d8b9
branches:  trunk
changeset: 803202:52d816d7d8b9
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 81080c8c7d90 -r 52d816d7d8b9 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