From 3d059f356a2add0e713b2dc3f3a5f253572e7892 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Thu, 16 Jun 2011 01:27:47 +0000 Subject: explicitly cast NULL to appropriate pointer type when used as sentinel --- src/graph/viewman/fun2D.c | 2 +- src/graph/viewman/fun3D.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graph/viewman') diff --git a/src/graph/viewman/fun2D.c b/src/graph/viewman/fun2D.c index 02810ffe..d3948b6b 100644 --- a/src/graph/viewman/fun2D.c +++ b/src/graph/viewman/fun2D.c @@ -224,7 +224,7 @@ forkView2D(void) #endif sprintf(envAXIOM,"%s",oa_getenv("AXIOM")); sprintf(runView,"%s%s",envAXIOM,"/lib/view2D"); - check(execl(runView,runView,NULL)); + check(execl(runView,runView, (char*) NULL)); fprintf(stderr,"The viewport manager could not execute view2D.\nCheck that view2D is on your PATH.\n"); exit(-1); diff --git a/src/graph/viewman/fun3D.c b/src/graph/viewman/fun3D.c index a0ced1b6..177aece1 100644 --- a/src/graph/viewman/fun3D.c +++ b/src/graph/viewman/fun3D.c @@ -276,7 +276,7 @@ forkView3D(int typeOfViewport) #endif sprintf(envAXIOM,"%s",oa_getenv("AXIOM")); sprintf(runView,"%s%s",envAXIOM,"/lib/view3D"); - check(execl(runView,runView,NULL)); + check(execl(runView,runView, (char*) NULL)); fprintf(stderr,"The viewport manager could not execute view3D.\nCheck that view3D is on your PATH.\n"); exit(-1); -- cgit v1.2.3