chiark / gitweb /
networkd: add assert
authorTom Gundersen <teg@jklm.no>
Sat, 14 Jun 2014 13:03:56 +0000 (15:03 +0200)
committerTom Gundersen <teg@jklm.no>
Sat, 14 Jun 2014 13:06:17 +0000 (15:06 +0200)
commitd9876a527f62e85c3c972bc5f45ad872cb4958c1
tree6151bb8501eeabd123006a4fdde9c9014c587c2e
parentefdc73dae3e5d92b817e2418a0af6c43dfba877c
networkd: add assert

It should not be possible to have a DHCP lease on a link without also having
an associated network. Add assert() to avoid compiler warnings.

Reported by Thomas H. P. Andersen
src/network/networkd-link.c