static void lldpd_cleanup(struct lldpd *);
static void lldpd_loop(struct lldpd *);
static void lldpd_shutdown(int);
-static void lldpd_exit();
+static void lldpd_exit(void);
static void lldpd_send_all(struct lldpd *);
static void lldpd_recv_all(struct lldpd *);
static int lldpd_guess_type(struct lldpd *, char *, int);
#endif /* USE_SNMP */
/* Create socket */
- if ((cfg->g_ctl = priv_ctl_create(cfg)) == -1)
+ if ((cfg->g_ctl = priv_ctl_create()) == -1)
fatalx("unable to create control socket " LLDPD_CTL_SOCKET);
if (lldpd_callback_add(cfg, cfg->g_ctl, ctl_accept, NULL) != 0)
fatalx("unable to add callback for control socket");
/* dmi.c */
#ifdef ENABLE_LLDPMED
-char *dmi_hw();
-char *dmi_fw();
-char *dmi_sn();
-char *dmi_manuf();
-char *dmi_model();
-char *dmi_asset();
+char *dmi_hw(void);
+char *dmi_fw(void);
+char *dmi_sn(void);
+char *dmi_manuf(void);
+char *dmi_model(void);
+char *dmi_asset(void);
#endif
/* log.c */
void fatalx(const char *);
/* agent.c */
-void agent_shutdown();
+void agent_shutdown(void);
void agent_init(struct lldpd *, int);
/* agent_priv.c */
-void agent_priv_register_domain();
+void agent_priv_register_domain(void);
/* client.c */
struct client_handle {
/* priv.c */
void priv_init(char*);
-int priv_ctl_create();
-void priv_ctl_cleanup();
-char *priv_gethostbyname();
+int priv_ctl_create(void);
+void priv_ctl_cleanup(void);
+char *priv_gethostbyname(void);
int priv_open(char*);
int priv_ethtool(char*, struct ethtool_cmd*);
int priv_iface_init(const char *);