From cf6501eb45408c83467160c8ed026c6aab347642 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 11 Apr 2016 11:31:17 -0700 Subject: Windows: Remove the need for _CRT_NONSTDC_NO_DEPRECATE. Replace some function calls with their non-deprecated equivalents so that we can remove _CRT_NONSTDC_NO_DEPRECATE from CMakeLists.txt and config.nmake. Leave _CRT_SECURE_NO_DEPRECATE in place. Removing it failed with 145 warnings and 72 errors. Note that we could probably improve startup performance by using wmem in diam_dict.*. Change-Id: I6e130003de838aebedbdd1aa78c50de8a339ddcb Reviewed-on: https://code.wireshark.org/review/14883 Reviewed-by: Gerald Combs Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- sync_pipe_write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sync_pipe_write.c') diff --git a/sync_pipe_write.c b/sync_pipe_write.c index c7aa3eb03b..fbcadcf797 100644 --- a/sync_pipe_write.c +++ b/sync_pipe_write.c @@ -49,7 +49,7 @@ pipe_write_header(int pipe_fd, char indicator, int length) header[3] = (length >> 0) & 0xFF; /* write header */ - return write(pipe_fd, header, sizeof header); + return ws_write(pipe_fd, header, sizeof header); } @@ -80,7 +80,7 @@ pipe_write_block(int pipe_fd, char indicator, const char *msg) /* write value (if we have one) */ if(len) { /*g_warning("write %d indicator: %c value len: %u msg: %s", pipe_fd, indicator, len, msg);*/ - ret = write(pipe_fd, msg, len); + ret = ws_write(pipe_fd, msg, len); if(ret == -1) { return; } -- cgit v1.2.3