static void opt_passlogfile(const char *arg)
って
static void opt_passlogfile(const char *opt, const char *arg)
じゃないから-passlogfileが通らないんだよね?