Author: kientzle
Date: Sat Jun 29 15:58:03 2013
New Revision: 252378
URL: http://svnweb.freebsd.org/changeset/base/252378

Log:
  Fix -Wunsequenced
  
  Submitted by: d...@gmx.com

Modified:
  head/usr.sbin/newsyslog/newsyslog.c

Modified: head/usr.sbin/newsyslog/newsyslog.c
==============================================================================
--- head/usr.sbin/newsyslog/newsyslog.c Sat Jun 29 15:54:17 2013        
(r252377)
+++ head/usr.sbin/newsyslog/newsyslog.c Sat Jun 29 15:58:03 2013        
(r252378)
@@ -1083,7 +1083,7 @@ parse_file(FILE *cf, struct cflist *work
                 * at any time, etc).
                 */
                if (strcasecmp(DEBUG_MARKER, q) == 0) {
-                       q = parse = missing_field(sob(++parse), errline);
+                       q = parse = missing_field(sob(parse + 1), errline);
                        parse = son(parse);
                        if (!*parse)
                                warnx("debug line specifies no option:\n%s",
@@ -1096,7 +1096,7 @@ parse_file(FILE *cf, struct cflist *work
                } else if (strcasecmp(INCLUDE_MARKER, q) == 0) {
                        if (verbose)
                                printf("Found: %s", errline);
-                       q = parse = missing_field(sob(++parse), errline);
+                       q = parse = missing_field(sob(parse + 1), errline);
                        parse = son(parse);
                        if (!*parse) {
                                warnx("include line missing argument:\n%s",
@@ -1138,7 +1138,7 @@ parse_file(FILE *cf, struct cflist *work
                        defconf_p = working;
                }
 
-               q = parse = missing_field(sob(++parse), errline);
+               q = parse = missing_field(sob(parse + 1), errline);
                parse = son(parse);
                if (!*parse)
                        errx(1, "malformed line (missing fields):\n%s",
@@ -1172,7 +1172,7 @@ parse_file(FILE *cf, struct cflist *work
                        } else
                                working->gid = (gid_t)-1;
 
-                       q = parse = missing_field(sob(++parse), errline);
+                       q = parse = missing_field(sob(parse + 1), errline);
                        parse = son(parse);
                        if (!*parse)
                                errx(1, "malformed line (missing fields):\n%s",
@@ -1187,7 +1187,7 @@ parse_file(FILE *cf, struct cflist *work
                        errx(1, "error in config file; bad permissions:\n%s",
                            errline);
 
-               q = parse = missing_field(sob(++parse), errline);
+               q = parse = missing_field(sob(parse + 1), errline);
                parse = son(parse);
                if (!*parse)
                        errx(1, "malformed line (missing fields):\n%s",
@@ -1197,7 +1197,7 @@ parse_file(FILE *cf, struct cflist *work
                        errx(1, "error in config file; bad value for count of 
logs to save:\n%s",
                            errline);
 
-               q = parse = missing_field(sob(++parse), errline);
+               q = parse = missing_field(sob(parse + 1), errline);
                parse = son(parse);
                if (!*parse)
                        errx(1, "malformed line (missing fields):\n%s",
@@ -1215,7 +1215,7 @@ parse_file(FILE *cf, struct cflist *work
 
                working->flags = 0;
                working->compress = COMPRESS_NONE;
-               q = parse = missing_field(sob(++parse), errline);
+               q = parse = missing_field(sob(parse + 1), errline);
                parse = son(parse);
                eol = !*parse;
                *parse = '\0';
@@ -1257,7 +1257,7 @@ no_trimat:
                if (eol)
                        q = NULL;
                else {
-                       q = parse = sob(++parse);       /* Optional field */
+                       q = parse = sob(parse + 1);     /* Optional field */
                        parse = son(parse);
                        if (!*parse)
                                eol = 1;
@@ -1327,7 +1327,7 @@ no_trimat:
                if (eol)
                        q = NULL;
                else {
-                       q = parse = sob(++parse);       /* Optional field */
+                       q = parse = sob(parse + 1);     /* Optional field */
                        parse = son(parse);
                        if (!*parse)
                                eol = 1;
@@ -1348,7 +1348,7 @@ no_trimat:
                if (eol)
                        q = NULL;
                else {
-                       q = parse = sob(++parse);       /* Optional field */
+                       q = parse = sob(parse + 1);     /* Optional field */
                        *(parse = son(parse)) = '\0';
                }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to