diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-14 20:53:27 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-16 17:49:42 +0200 |
commit | f0fa51773abaa946ddcc987c1cf93539f48f7b4f (patch) | |
tree | cdd721614f18caca80eb00df2f902ce447012df9 /Userland/Libraries/LibC/netdb.cpp | |
parent | fbdc3b0ee22493cd35c205a4f974c755928b905b (diff) | |
download | serenity-f0fa51773abaa946ddcc987c1cf93539f48f7b4f.zip |
AK+Userland: Fix some compiler warnings and make variables const-ref
This fixes a few compiler warnings and makes some variables const-ref
in preparation for the next commit which changes how ByteBuffer works.
Diffstat (limited to 'Userland/Libraries/LibC/netdb.cpp')
-rw-r--r-- | Userland/Libraries/LibC/netdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibC/netdb.cpp b/Userland/Libraries/LibC/netdb.cpp index 0fe5ba2063..77d0b790dd 100644 --- a/Userland/Libraries/LibC/netdb.cpp +++ b/Userland/Libraries/LibC/netdb.cpp @@ -466,7 +466,7 @@ static bool fill_getserv_buffers(const char* line, ssize_t read) } auto alias = split_line[i].to_byte_buffer(); alias.append("\0", sizeof(char)); - __getserv_alias_list_buffer.append(alias); + __getserv_alias_list_buffer.append(move(alias)); } } @@ -636,7 +636,7 @@ static bool fill_getproto_buffers(const char* line, ssize_t read) break; auto alias = split_line[i].to_byte_buffer(); alias.append("\0", sizeof(char)); - __getproto_alias_list_buffer.append(alias); + __getproto_alias_list_buffer.append(move(alias)); } } |