diff options
Diffstat (limited to 'src/graph/viewman')
-rw-r--r-- | src/graph/viewman/fun2D.c | 2 | ||||
-rw-r--r-- | src/graph/viewman/fun3D.c | 2 | ||||
-rw-r--r-- | src/graph/viewman/globalsM.h | 2 | ||||
-rw-r--r-- | src/graph/viewman/sselect.c | 6 | ||||
-rw-r--r-- | src/graph/viewman/viewman.c | 6 |
5 files changed, 12 insertions, 6 deletions
diff --git a/src/graph/viewman/fun2D.c b/src/graph/viewman/fun2D.c index 7027a40b..02810ffe 100644 --- a/src/graph/viewman/fun2D.c +++ b/src/graph/viewman/fun2D.c @@ -52,6 +52,8 @@ #include "make2D.H1" #include "cfuns.h" +using namespace OpenAxiom; + #define writeEach void diff --git a/src/graph/viewman/fun3D.c b/src/graph/viewman/fun3D.c index f277a442..a0ced1b6 100644 --- a/src/graph/viewman/fun3D.c +++ b/src/graph/viewman/fun3D.c @@ -52,6 +52,8 @@ #include "readView.H1" #include "cfuns.h" +using namespace OpenAxiom; + void funView3D(int viewCommand) { diff --git a/src/graph/viewman/globalsM.h b/src/graph/viewman/globalsM.h index cce83265..0dd1690b 100644 --- a/src/graph/viewman/globalsM.h +++ b/src/graph/viewman/globalsM.h @@ -34,7 +34,7 @@ */ extern viewManager *viewports,*slot,*stepSlot; -extern openaxiom_sio* spadSock; +extern OpenAxiom::openaxiom_sio* spadSock; extern int viewType, viewCommand; extern fd_set filedes; extern int acknow; diff --git a/src/graph/viewman/sselect.c b/src/graph/viewman/sselect.c index 0e56e9a7..68a3f869 100644 --- a/src/graph/viewman/sselect.c +++ b/src/graph/viewman/sselect.c @@ -60,14 +60,14 @@ *******************************************/ int -superSelect(int n, int *rd, int *wr, int *ex, char *timeout) +superSelect(int n, fd_set *rd, fd_set *wr, fd_set *ex, timeval *timeout) { int waiting; viewManager *viewport; int ret_val; - ret_val = select(n, (void *)rd, (void *)wr, (void *)ex, (void *)timeout); + ret_val = select(n, rd, wr, ex, timeout); while (ret_val == -1 && errno == EINTR) { /* checkClosedChild gets set by the SIGCHLD handler */ if (checkClosedChild) { @@ -84,7 +84,7 @@ superSelect(int n, int *rd, int *wr, int *ex, char *timeout) bsdSignal(OPENAXIOM_SIGCHLD,endChild,DontRestartSystemCalls); } } - ret_val = select(n, (void *)rd, (void *)wr, (void *)ex, (void *)timeout); + ret_val = select(n, rd, wr, ex, timeout); } return ret_val; } diff --git a/src/graph/viewman/viewman.c b/src/graph/viewman/viewman.c index a8dd4777..5085a3e9 100644 --- a/src/graph/viewman/viewman.c +++ b/src/graph/viewman/viewman.c @@ -57,6 +57,8 @@ #include "cleanup.H1" #include "sselect.H1" +using namespace OpenAxiom; + /************* global variables **************/ Display *dsply; @@ -125,9 +127,9 @@ main (void) #ifdef DEBUG fprintf(stderr,"Selection for filedes of %x \n",filedes); #endif - code = check(superSelect(FD_SETSIZE,(void *) &filedes,0,0,0)); + code = check(superSelect(FD_SETSIZE, &filedes,0,0,0)); for (;code<=0;) - code = check(superSelect(FD_SETSIZE,(void *)&filedes,0,0,0)); + code = check(superSelect(FD_SETSIZE, &filedes,0,0,0)); slot = viewports; keepLooking = 1; |