Mercurial > hg > toybox
diff toys/pending/watch.c @ 1183:0752b2d58909 draft
Rename xmsprintf() to just xmprintf().
Partly because there's no supplied target string ala sprintf, and partly
because I can never remember what order the m and s go in.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 16 Jan 2014 09:26:50 -0600 |
parents | 580a0300b68f |
children | 0ecfaa7022e8 |
line wrap: on
line diff
--- a/toys/pending/watch.c Wed Jan 15 09:38:31 2014 -0600 +++ b/toys/pending/watch.c Thu Jan 16 09:26:50 2014 -0600 @@ -35,10 +35,10 @@ while(toys.optargs[++i]) { char * oldcmd = cmd; - cmd = xmsprintf("%s %s", oldcmd, toys.optargs[i]); + cmd = xmprintf("%s %s", oldcmd, toys.optargs[i]); if (CFG_TOYBOX_FREE) free(oldcmd); } - header = xmsprintf("Every %us: %s", TT.interval, cmd); + header = xmprintf("Every %us: %s", TT.interval, cmd); hlen = strlen(header); while(1) {