// Copyright (C) 2002 Andrew Tridgell
-// Copyright (C) 2011-2016 Joel Rosdahl
+// Copyright (C) 2011-2018 Joel Rosdahl
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
* sizeof(TCHAR));
_snprintf((LPTSTR) lpDisplayBuf,
LocalSize(lpDisplayBuf) / sizeof(TCHAR),
- TEXT("%s failed with error %ld: %s"), __FILE__, dw, (const char *)lpMsgBuf);
+ TEXT("%s failed with error %lu: %s"), __FILE__, dw,
+ (const char *)lpMsgBuf);
cc_log("can't execute %s; OS returned error: %s",
full_path_win_ext, (char *)lpDisplayBuf);
* sizeof(TCHAR));
_snprintf((LPTSTR) lp_display_buf,
LocalSize(lp_display_buf) / sizeof(TCHAR),
- TEXT("%s failed with error %ld: %s"), __FILE__, dw,
+ TEXT("%s failed with error %lu: %s"), __FILE__, dw,
(const char *)lp_msg_buf);
cc_log("can't get hostname OS returned error: %s", (char *)lp_display_buf);
* sizeof(TCHAR));
_snprintf((LPTSTR) lp_display_buf,
LocalSize(lp_display_buf) / sizeof(TCHAR),
- TEXT("%s failed with error %ld: %s"), __FILE__, dw, (const char *)lp_msg_buf);
+ TEXT("%s failed with error %lu: %s"), __FILE__, dw,
+ (const char *)lp_msg_buf);
cc_log("can't rename file %s to %s OS returned error: %s",
oldpath, newpath, (char *) lp_display_buf);