diff options
Diffstat (limited to 'src/lib/cfuns-c.c')
-rw-r--r-- | src/lib/cfuns-c.c | 10 |
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; |