pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/cwrappers/files/bin Revert: Tokenize the cont...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ce9e2c4e9f6a
branches:  trunk
changeset: 371227:ce9e2c4e9f6a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Nov 07 22:26:38 2017 +0000

description:
Revert: Tokenize the contents of "append_executable"

It's unnecessary and violates the design principles of the
configuration.

diffstat:

 pkgtools/cwrappers/files/bin/common.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (26 lines):

diff -r 5a3f5a3cb1a2 -r ce9e2c4e9f6a pkgtools/cwrappers/files/bin/common.c
--- a/pkgtools/cwrappers/files/bin/common.c     Tue Nov 07 17:18:25 2017 +0000
+++ b/pkgtools/cwrappers/files/bin/common.c     Tue Nov 07 22:26:38 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: common.c,v 1.8 2017/11/07 16:50:52 khorben Exp $ */
+/* $NetBSD: common.c,v 1.9 2017/11/07 22:26:38 joerg Exp $ */
 
 /*-
  * Copyright (c) 2009, 2017 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -275,14 +275,9 @@
                        TAILQ_INSERT_TAIL(&prepend_executable_args, arg, link);
                }
                if (strncmp(line, "append_executable=", 18) == 0) {
-                       char *last, *p;
-                       unsigned int i;
                        struct argument *arg;
-                       for (p = strtok_r(line + 18, " ", &last), i = 0; p;
-                                       (p = strtok_r(NULL, " ", &last)), i++) {
-                               arg = argument_copy(p);
-                               TAILQ_INSERT_TAIL(&append_executable_args, arg, link);
-                       }
+                       arg = argument_copy(line + 18);
+                       TAILQ_INSERT_TAIL(&append_executable_args, arg, link);
                }
                if (strncmp(line, "prepend_shared=", 15) == 0) {
                        struct argument *arg;



Home | Main Index | Thread Index | Old Index