From 23e3d955132e04a74e804da81890e7fe9390bc30 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 18 Aug 2012 23:57:06 +0000 Subject: * boot/translator.boot (shoeOutParse): Fix thinko. * lib/cfuns-c.c (oa_getcwd): Tidy. (oa_spawn): Likewise. * lib/sockio-c.c (send_string_len): Likewise. * utils/command.cc (option_value): Likewise. (execute_core): Likewise. --- src/utils/command.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/command.cc b/src/utils/command.cc index cd9017c3..6821a3e0 100644 --- a/src/utils/command.cc +++ b/src/utils/command.cc @@ -113,7 +113,7 @@ namespace OpenAxiom { const char* option_value(const Command* command, const char* opt) { - const int n = strlen(opt); + const size_t n = strlen(opt); for (int i = 1; i < command->core.argc; ++i) { const char* arg = command->core.argv[i]; if (strlen(arg) < n) @@ -506,7 +506,7 @@ execute_core(const Command* command, Driver driver) /* lpCurrentDirectory */ NULL, /* lpstartupInfo */ &startupInfo, /* lpProcessInformation */ &procInfo) == 0) { - fprintf(stderr, "error %d\n", GetLastError()); + fprintf(stderr, "error %lu\n", GetLastError()); abort(); } WaitForSingleObject(procInfo.hProcess, INFINITE); -- cgit v1.2.3