NetBSD/src 20gTj9k — lib/libwrap expandm.c
There's no point setting errno, it is just overwritten by err in the exit path ... this function never fails, it simply sometimes doesn't actually expand the %m and just leaves the format string intact. And declare variables at the head of their scope, not at some random place in the middle of the code, whatever C allows, that is just ugly.
Version | Delta | File | |
---|---|---|---|
1.10 | +5 | -6 | lib/libwrap/expandm.c |
+5 | -6 | 1 files |