From d03c016505934a0b51bf0d3041b3e3f7c05e90ca Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 11 Jan 2018 22:33:50 +0100 Subject: [PATCH] Fix code style --- execute.c | 5 +++-- util.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/execute.c b/execute.c index a5020d958..da3e6f09b 100644 --- a/execute.c +++ b/execute.c @@ -1,5 +1,5 @@ // 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 @@ -190,7 +190,8 @@ win32execute(char *path, char **argv, int doreturn, * 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); diff --git a/util.c b/util.c index 21785fe78..1358d010e 100644 --- a/util.c +++ b/util.c @@ -548,7 +548,7 @@ get_hostname(void) * 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); @@ -1458,7 +1458,8 @@ x_rename(const char *oldpath, const char *newpath) * 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); -- 2.47.2