aboutsummaryrefslogtreecommitdiff
path: root/src/sman
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/sman
parent86c534a99a9eda6be04595e2fecc433e51ddaed2 (diff)
downloadopen-axiom-3a4195e4293dce547f9fd671063d9b65ca14cc56.tar.gz
More C cleanups
Diffstat (limited to 'src/sman')
-rw-r--r--src/sman/session.c4
-rw-r--r--src/sman/sman.c2
-rw-r--r--src/sman/spadclient.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/src/sman/session.c b/src/sman/session.c
index 2a64dbc2..42c0ada4 100644
--- a/src/sman/session.c
+++ b/src/sman/session.c
@@ -466,13 +466,13 @@ fprintf(stderr,"rd=%u]\n",*((long *)rd.fds_bits));
int
main(void)
{
-
+ using namespace OpenAxiom;
#ifdef DEBUG2
/* delay for attaching with debugger before interesting things happen */
openaxiom_sleep(30);
#endif
- putenv("LC_ALL=C");
+ oa_setenv("LC_ALL", "C");
setlocale(LC_ALL, "");
/* spad_server connects to Lisp server socket
read_SpadServer_command handles requests */
diff --git a/src/sman/sman.c b/src/sman/sman.c
index bddbdfc3..1b2a243a 100644
--- a/src/sman/sman.c
+++ b/src/sman/sman.c
@@ -776,7 +776,7 @@ main(int argc, char *argv[])
command.root_dir = get_systemdir(argc, argv);
process_options(&command, argc, argv);
- putenv((char*) "LC_ALL=C");
+ oa_setenv("LC_ALL", "C");
setlocale(LC_ALL, "");
bsdSignal(SIGINT, SIG_IGN,RestartSystemCalls);
init_term_io();
diff --git a/src/sman/spadclient.c b/src/sman/spadclient.c
index dd1d6722..8d23e1d4 100644
--- a/src/sman/spadclient.c
+++ b/src/sman/spadclient.c
@@ -63,7 +63,8 @@ inter_handler(int sig)
int
main(void)
{
- putenv("LC_ALL=C");
+ using namespace OpenAxiom;
+ oa_setenv("LC_ALL", "C");
setlocale(LC_ALL, "");
sock = connect_to_local_server(SessionServer, InterpWindow, Forever);
bsdSignal(SIGINT, inter_handler,RestartSystemCalls);