[PATCH v2] Rewrite fsck.c:fsck_commit() replace memcmp() with starts_with()

2014-03-21 Thread blacksimit
From: Oguzhan Unlu cengoguzhanu...@gmail.com My solution to make lines containing buffer += a_number; clearer to anyone is following; I defined a new int, magic_num, then assigned lengths of used strings to magic_num and then changed assignment lines through using magic_num so that where the

[PATCH] Rewritten fsck.c:fsck_commit() through using starts_with() instead of memcmp()

2014-03-19 Thread blacksimit
Hi, I've done a microproject, number 15, Rewrite fsck.c:fsck_commit() to use starts_with() and/or skip_prefix(). I used only starts_with(). memcmp() returns 0 when both are equal, therefore when replacing with starts_with() , I used ! or deleted where appropriate. I plan to apply for the GSoC