daemon/plugin.c: remove unneccesary casts