]> git.ipfire.org Git - thirdparty/systemd.git/commit
extract-word: increment pointer p and keep c in sync in for loop
authorFilipe Brandenburger <filbranden@google.com>
Fri, 6 Nov 2015 05:41:04 +0000 (21:41 -0800)
committerFilipe Brandenburger <filbranden@google.com>
Fri, 6 Nov 2015 05:41:04 +0000 (21:41 -0800)
commit93de9eb76d628cf731120d97332e03600c167271
treece7e6e0831848996f50dd1060b1c5cc4fd9bb50a
parent8372da448f3c738e0154d988538d497f7e2e1f83
extract-word: increment pointer p and keep c in sync in for loop

This will make it easier to use inner loops to keep looping in the same
state, by just updating p and c in the same way in the inner loops.

Tested that no regressions were created in test-extract-word.
src/basic/extract-word.c