summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2017-06-25 17:18:06 -0700
committerHans Dedecker <dedeckeh@gmail.com>2017-06-26 21:27:46 +0200
commitd397e8ca5dd492a1fac2e186e2a8b91ac8e463df (patch)
treee6401f7ec1d50df70680e922696eb972b8f33f19 /device.h
parentef5f7a09a202ba6c3d2021af0b36ee32a18f680f (diff)
downloadnetifd-d397e8ca5dd492a1fac2e186e2a8b91ac8e463df.tar.gz
netifd: Fix printf calls + function declarations.
cppcheck found printf functions with signed instead of unsigned formats. Fix those as well as some non-matching function declarations. Signed-off by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'device.h')
-rw-r--r--device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/device.h b/device.h
index feb865f..74d20d6 100644
--- a/device.h
+++ b/device.h
@@ -253,11 +253,11 @@ void device_reset_old(void);
void device_set_default_ps(bool state);
void device_init_virtual(struct device *dev, struct device_type *type, const char *name);
-int device_init(struct device *iface, struct device_type *type, const char *ifname);
+int device_init(struct device *dev, struct device_type *type, const char *ifname);
void device_cleanup(struct device *dev);
struct device *device_find(const char *name);
struct device *device_get(const char *name, int create);
-void device_add_user(struct device_user *dep, struct device *iface);
+void device_add_user(struct device_user *dep, struct device *dev);
void device_remove_user(struct device_user *dep);
void device_broadcast_event(struct device *dev, enum device_event ev);