Re: [PATCHv2] fsck.c:fsck_commit() use skip_prefix() and starts_with()

2014-03-20 Thread Eric Sunshine
On Wed, Mar 19, 2014 at 9:44 AM, Othman Darraz darraz...@gmail.com wrote: Subject: fsck.c:fsck_commit() use skip_prefix() and starts_with() Add a space after the colon. Add a colon after fsck_commit(). make buffer const char* because the content of the memory referenced by this variable

[PATCHv2] fsck.c:fsck_commit() use skip_prefix() and starts_with()

2014-03-19 Thread Othman Darraz
make buffer const char* because the content of the memory referenced by this variable doesn't change in this function. Add cast to buffer to match fsck_ident signature which is (char**,...) use skip_prefix() instead of memcmp() to avoid using magic number. Signed-off-by: Othman Darraz