diff options
author | Rob Landley <rob@landley.net> | 2014-01-16 09:26:50 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-01-16 09:26:50 -0600 |
commit | 59d85e2bb065a3bdc27868acb7a65f89d872c7fa (patch) | |
tree | 25db9183f6e142b7c5f12b69e9728aaa98f5bbd6 /toys/pending/tcpsvd.c | |
parent | 2ded83376cb822198e83048335417a0e870f2240 (diff) | |
download | toybox-59d85e2bb065a3bdc27868acb7a65f89d872c7fa.tar.gz |
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.
Diffstat (limited to 'toys/pending/tcpsvd.c')
-rw-r--r-- | toys/pending/tcpsvd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/pending/tcpsvd.c b/toys/pending/tcpsvd.c index 37aafebf..031d7238 100644 --- a/toys/pending/tcpsvd.c +++ b/toys/pending/tcpsvd.c @@ -79,8 +79,8 @@ static char *sock_to_address(struct sockaddr *sock, int flags) if (!(status = getnameinfo(sock, len, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), flags))) { - if (flags & NI_NUMERICSERV) return xmsprintf("%s:%s",hbuf, sbuf); - return xmsprintf("%s",hbuf); + if (flags & NI_NUMERICSERV) return xmprintf("%s:%s",hbuf, sbuf); + return xmprintf("%s",hbuf); } error_exit("getnameinfo: %s", gai_strerror(status)); } |