diff options
author | dos-reis <gdr@axiomatics.org> | 2012-08-18 23:57:06 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2012-08-18 23:57:06 +0000 |
commit | 23e3d955132e04a74e804da81890e7fe9390bc30 (patch) | |
tree | 7f63971ab506c0a6c2ef86a74667e3b2ab329d91 /src/utils | |
parent | 3c41ecf6c94ad09fa023c402c39d18c72a76812a (diff) | |
download | open-axiom-23e3d955132e04a74e804da81890e7fe9390bc30.tar.gz |
* 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.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/command.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |