aboutsummaryrefslogtreecommitdiff
path: root/src/clef
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-04-01 01:53:29 +0000
committerdos-reis <gdr@axiomatics.org>2013-04-01 01:53:29 +0000
commit3a4195e4293dce547f9fd671063d9b65ca14cc56 (patch)
tree503e7c0a091920be1626452a1a9ddd4def926836 /src/clef
parent86c534a99a9eda6be04595e2fecc433e51ddaed2 (diff)
downloadopen-axiom-3a4195e4293dce547f9fd671063d9b65ca14cc56.tar.gz
More C cleanups
Diffstat (limited to 'src/clef')
-rw-r--r--src/clef/edible.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clef/edible.c b/src/clef/edible.c
index dd07181b..71900805 100644
--- a/src/clef/edible.c
+++ b/src/clef/edible.c
@@ -127,6 +127,7 @@ char logpath[30];
int
main(int argc, char *argv[])
{
+ using namespace OpenAxiom;
fd_set rfds; /* the structure for the select call */
int code; /* return code from system calls */
char out_buff[MAXLINE]; /* from child and stdin */
@@ -137,7 +138,7 @@ main(int argc, char *argv[])
- putenv((char*) "LC_ALL=C");
+ oa_setenv("LC_ALL", "C");
setlocale(LC_ALL, "");
/* try to get a pseudoterminal to play with */
if (ptyopen(&contNum, &serverNum, serverPath) == -1) {