On Monday 19 June 2017, Karel Zak wrote: > On Mon, Jun 19, 2017 at 02:36:17PM +0200, Ruediger Meier wrote: > > Sorry I forgot that the fputs/puts repacement adds another newline. > > > > I could either > > 1. remove the newlines from the strings (but would this cause > > extra work for translators?) > > 2. use printf instead of puts > > 3. don't change anything, just use constant FILE argument stdout. > > I think fputs(..., stdout) is non-invasive change, better than modify > all strings and probably more effective than printf(). > > Karel I'm using -static void usage(FILE * out) { - FILE * out = stdout; - fputs(USAGE_HEADER, out); +static void usage(void) { + FILE * out = stdout; + fputs(USAGE_HEADER, out); ... } This will give the smallest patches when I go through all the other commands. Here it is updated: https://github.com/karelzak/util-linux/pull/465 cu, Rudi -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html