summaryrefslogtreecommitdiff
path: root/src/udev/net
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-06-02 16:52:07 +0200
committerTom Gundersen <teg@jklm.no>2015-06-02 18:12:47 +0200
commit3b64e4d4f40baac56148c7d333d6a0053358ec7a (patch)
tree770d251059fd20ee9a4ed7510f639a716367c7b0 /src/udev/net
parent7283a80d10217b929acf58899f016ca06dacdc53 (diff)
udev: add some asserts
Mostly for documentation purposes.
Diffstat (limited to 'src/udev/net')
-rw-r--r--src/udev/net/link-config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index ce038abee5..5610b2808e 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -240,6 +240,10 @@ int link_config_get(link_config_ctx *ctx, struct udev_device *device,
link_config **ret) {
link_config *link;
+ assert(ctx);
+ assert(device);
+ assert(ret);
+
LIST_FOREACH(links, link, ctx->links) {
const char* attr_value;