libchip: Fix prototypes