chiark / gitweb /
util: make gcc shut up by passing a 0 mode param to open()
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jul 2013 00:52:41 +0000 (02:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Jul 2013 00:52:41 +0000 (02:52 +0200)
commitdd94c17e7da89fa612952119ac825116dc5a8deb
tree8261f6b1833dc1547e6e825cce5bc5817c7d3e14
parent32b2634edf218e250b84615bbf106b2baf42d69b
util: make gcc shut up by passing a 0 mode param to open()

If we pass a variable to open()'s flags parameter it really wants a mode
parameter too, otherwise some gcc version whine. Hence, pass 0 in that
case.
src/shared/util.c