mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
LibC: Convert remaining String::format() to formatted()/number()
This commit is contained in:
parent
ec91f8ad1d
commit
5b37c0a71a
4 changed files with 9 additions and 9 deletions
|
@ -123,7 +123,7 @@ hostent* gethostbyname(const char* name)
|
|||
close(fd);
|
||||
});
|
||||
|
||||
auto line = String::format("L%s\n", name);
|
||||
auto line = String::formatted("L{}\n", name);
|
||||
int nsent = write(fd, line.characters(), line.length());
|
||||
if (nsent < 0) {
|
||||
perror("write");
|
||||
|
@ -189,7 +189,7 @@ hostent* gethostbyaddr(const void* addr, socklen_t addr_size, int type)
|
|||
|
||||
IPv4Address ipv4_address((const u8*)&((const in_addr*)addr)->s_addr);
|
||||
|
||||
auto line = String::format("R%d.%d.%d.%d.in-addr.arpa\n",
|
||||
auto line = String::formatted("R{}.{}.{}.{}.in-addr.arpa\n",
|
||||
ipv4_address[3],
|
||||
ipv4_address[2],
|
||||
ipv4_address[1],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue