summaryrefslogtreecommitdiff
path: root/Userland/Utilities/nc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/nc.cpp')
-rw-r--r--Userland/Utilities/nc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/nc.cpp b/Userland/Utilities/nc.cpp
index 09efa7f4cc..8d11fd61e7 100644
--- a/Userland/Utilities/nc.cpp
+++ b/Userland/Utilities/nc.cpp
@@ -50,7 +50,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
bool verbose = false;
bool should_close = false;
bool udp_mode = false;
- const char* target = nullptr;
+ char const* target = nullptr;
int port = 0;
int maximum_tcp_receive_buffer_size_input = -1;
@@ -135,7 +135,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
sockaddr_in dst_addr {};
dst_addr.sin_family = AF_INET;
dst_addr.sin_port = htons(port);
- dst_addr.sin_addr.s_addr = *(const in_addr_t*)hostent->h_addr_list[0];
+ dst_addr.sin_addr.s_addr = *(in_addr_t const*)hostent->h_addr_list[0];
if (verbose) {
char addr_str[INET_ADDRSTRLEN];