]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix code style
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 11 Jan 2018 21:33:50 +0000 (22:33 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 11 Jan 2018 21:33:50 +0000 (22:33 +0100)
execute.c
util.c

index a5020d958a5cc22d8a7259298ce92ebf0bd9f6b0..da3e6f09b8328655bc9d7d11e6ed122b10c0ba43 100644 (file)
--- 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 21785fe78d56ae7e0784abd4949bfcf41925c369..1358d010e7d92f38ee941de61bf48406d1e258c2 100644 (file)
--- 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);