From 3a4195e4293dce547f9fd671063d9b65ca14cc56 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Mon, 1 Apr 2013 01:53:29 +0000 Subject: More C cleanups --- src/sman/session.c | 4 ++-- src/sman/sman.c | 2 +- src/sman/spadclient.c | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/sman') 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); -- cgit v1.2.3