link-config: make initialization to -1 less weird
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Dec 2017 18:50:43 +0000 (19:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Dec 2017 18:51:25 +0000 (19:51 +0100)
commitab27086387c29886febd27e5366bc1b3eea2df06
tree390b9639d572e2c2c4161984abe00b5ee0128e62
parent673192494c129975b605541ee688143ecf2a6416
link-config: make initialization to -1 less weird

memset() is weird anyway, since it expects an "int" as second parameter,
which it then uses as a byte, i.e. as uint8_t or something like that.
But by passing -1 to it, things get particularly weird, as that relies
on sign expansion to do the right thing.
src/udev/net/link-config.c