Re: [PATCH v2 04/18] fsck: Offer a function to demote fsck errors to warnings

2015-01-21 Thread Johannes Schindelin
Hi Junio, On 2015-01-21 09:49, Junio C Hamano wrote: > Johannes Schindelin writes: > >> +static inline int substrcmp(const char *string, int len, const char *match) >> +{ >> +int match_len = strlen(match); >> +if (match_len != len) >> +return -1; >> +return memcmp(string,

Re: [PATCH v2 04/18] fsck: Offer a function to demote fsck errors to warnings

2015-01-21 Thread Junio C Hamano
Johannes Schindelin writes: > +static inline int substrcmp(const char *string, int len, const char *match) > +{ > + int match_len = strlen(match); > + if (match_len != len) > + return -1; > + return memcmp(string, match, len); > +} Is this what we call "starts_with()" the