Fix build warning:

../../../test/checkpoint/checkpointer.c: In function 'get_key_int':
../../../test/checkpoint/checkpointer.c:221: warning: declaration of
'index' shadows a global declaration
/usr/include/strings.h:57: warning: shadowed declaration is here