klist: fix coding style errors in klist.h and klist.c