aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-06-16 01:27:47 +0000
committerdos-reis <gdr@axiomatics.org>2011-06-16 01:27:47 +0000
commit3d059f356a2add0e713b2dc3f3a5f253572e7892 (patch)
tree8a4d0bb9403ea620ac65a3b6a7ae4d3281c9fb35 /src
parent225a032452ab68d3a227bf5cc5769553a9a09fa1 (diff)
downloadopen-axiom-3d059f356a2add0e713b2dc3f3a5f253572e7892.tar.gz
explicitly cast NULL to appropriate pointer type when used as sentinel
Diffstat (limited to 'src')
-rw-r--r--src/clef/edible.c2
-rw-r--r--src/graph/viewAlone/spoon2D.c2
-rw-r--r--src/graph/viewAlone/spoonComp.c2
-rw-r--r--src/graph/viewman/fun2D.c2
-rw-r--r--src/graph/viewman/fun3D.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/clef/edible.c b/src/clef/edible.c
index f4116f3d..dd07181b 100644
--- a/src/clef/edible.c
+++ b/src/clef/edible.c
@@ -231,7 +231,7 @@ main(int argc, char *argv[])
program = strdup("/bin/sh");
else
program = strdup (program);
- execlp( program,program, (char *) 0);
+ execlp( program,program, (char *) NULL);
perror("clef trying to execlp the default child");
fprintf(stderr, "Process --> %s\n", program);
}
diff --git a/src/graph/viewAlone/spoon2D.c b/src/graph/viewAlone/spoon2D.c
index 2765ce56..00f46e31 100644
--- a/src/graph/viewAlone/spoon2D.c
+++ b/src/graph/viewAlone/spoon2D.c
@@ -86,7 +86,7 @@ spoonView2D(void)
sprintf(errorStr,"%s","(viewAlone) execution of the TwoDimensionalViewport process");
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,"Could not execute view2D! Check that view2D is on your path variable.\n");
exit(-1);
diff --git a/src/graph/viewAlone/spoonComp.c b/src/graph/viewAlone/spoonComp.c
index b708eed3..5714d04f 100644
--- a/src/graph/viewAlone/spoonComp.c
+++ b/src/graph/viewAlone/spoonComp.c
@@ -88,7 +88,7 @@ spoonView3D(int type)
"(viewAlone) execution of the ThreeDimensionalViewport process");
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,"Could not execute view3D!\n");
exit(-1);
default:
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);