aboutsummaryrefslogtreecommitdiff
path: root/src/lib/cfuns-c.c
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-04-03 02:16:23 +0000
committerdos-reis <gdr@axiomatics.org>2013-04-03 02:16:23 +0000
commite54671b3aa34f350c009c407042933b814fe220f (patch)
treec06d393ed2395071d714fe3062f086c758f7d993 /src/lib/cfuns-c.c
parent1e979a3c60f7e79ee8aa3aef8f9d4bb354b17bc1 (diff)
downloadopen-axiom-e54671b3aa34f350c009c407042933b814fe220f.tar.gz
Fix up fallout from C++11 switch
Diffstat (limited to 'src/lib/cfuns-c.c')
-rw-r--r--src/lib/cfuns-c.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/cfuns-c.c b/src/lib/cfuns-c.c
index 1b75219e..e95abbee 100644
--- a/src/lib/cfuns-c.c
+++ b/src/lib/cfuns-c.c
@@ -749,9 +749,9 @@ OPENAXIOM_C_EXPORT Byteorder
oa_get_host_byteorder(void)
{
#ifdef WORDS_BIGENDIAN
- return big_endian;
+ return Byteorder::big;
#else
- return little_endian;
+ return Byteorder::little;
#endif
}
@@ -816,16 +816,16 @@ oa_spawn(Process* proc, SpawnFlags flags)
#else
proc->id = 0;
- if ((flags & spawn_replace) == 0)
+ if ((flags & SpawnFlags::replace) == 0)
proc->id = fork();
if (proc->id == 0) {
- if (flags & spawn_search_path)
+ if (flags & SpawnFlags::search_path)
execvp(proc->argv[0], proc->argv);
else
execv(proc->argv[0], proc->argv);
perror(strerror(errno));
/* Don't keep useless clones around. */
- if ((flags & spawn_replace) == 0)
+ if ((flags & SpawnFlags::replace) == 0)
exit(-1);
}
return proc->id;