From: Jeff King Date: Wed, 18 Jun 2014 19:49:44 +0000 (-0400) Subject: daemon: use skip_prefix to avoid magic numbers X-Git-Tag: v2.1.0-rc0~64^2~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d12c24d2a96f8f9aeb100b800d8fb217f28a6a2a?ds=inline;hp=d12c24d2a96f8f9aeb100b800d8fb217f28a6a2a daemon: use skip_prefix to avoid magic numbers Like earlier cases, we can use skip_prefix to avoid magic numbers that must match the length of starts_with prefixes. However, the numbers are a little more complicated here, as we keep parsing past the prefix. We can solve it by keeping a running pointer as we parse; its final value is the location we want. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---