summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorStephan T. Lavavej <stl@nuwen.net>2013-11-27 10:57:01 -0500
committerPaul Smith <psmith@gnu.org>2013-11-27 10:57:37 -0500
commit99385ee6f79f779c3d841df11d19300353983cba (patch)
tree846b30666a24dee1d03aa2329a62f5cfa8ecd888 /main.c
parentf5f5adb62cd8ea3d96e79b86f9e6fe8ada397b45 (diff)
downloadgunmake-99385ee6f79f779c3d841df11d19300353983cba.tar.gz
Solve some Windows build issues.
* main.c (main): Use ONS(), not OSN(). (prepare_mutex_handle_string) [WINDOWS32]: Use %Ix formatting to support both 32bit and 64bit systems. * job.c (free_child, new_job): Use ONS(), not OSN(). * w32/subproc/w32err.c (map_windws32_error_to_string): Use O() when calling fatal(). Copyright-paperwork-exempt: yes
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 91b6c2d..541fd1f 100644
--- a/main.c
+++ b/main.c
@@ -793,7 +793,7 @@ prepare_mutex_handle_string (sync_handle_t handle)
/* Prepare the mutex handle string for our children. */
/* 2 hex digits per byte + 2 characters for "0x" + null. */
sync_mutex = xmalloc ((2 * sizeof (sync_handle_t)) + 2 + 1);
- sprintf (sync_mutex, "0x%x", handle);
+ sprintf (sync_mutex, "0x%Ix", handle);
define_makeflags (1, 0);
}
}
@@ -1981,7 +1981,7 @@ main (int argc, char **argv, char **envp)
{
DWORD err = GetLastError ();
const char *estr = map_windows32_error_to_string (err);
- OSN (fatal, NILF,
+ ONS (fatal, NILF,
_("creating jobserver semaphore: (Error %ld: %s)"), err, estr);
}
#else