From af0c4289344fa2880abdf16db1eb655b646c817b02dad477ca3c3099ae0b7719 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 6 Aug 2025 02:29:37 -0400 Subject: [PATCH] Use `new` not `dNew`. --- dpi/file.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dpi/file.cc b/dpi/file.cc index 71d2212..fcf41b3 100644 --- a/dpi/file.cc +++ b/dpi/file.cc @@ -893,7 +893,7 @@ static ClientInfo *File_add_client(int sock_fd) { ClientInfo *new_client; - new_client = dNew(ClientInfo, 1); + new_client = new ClientInfo; new_client->sh = a_Dpip_dsh_new(sock_fd, sock_fd, 8*1024); new_client->orig_url = NULL; new_client->filename = NULL; @@ -906,6 +906,7 @@ static ClientInfo *File_add_client(int sock_fd) new_client->old_style = OLD_STYLE; dList_append(Clients, new_client); + return new_client; }