]> granicus.if.org Git - yasm/commitdiff
vps_print() should take a const valparamhead *.
authorPeter Johnson <peter@tortall.net>
Sat, 3 Aug 2002 17:01:05 +0000 (17:01 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 3 Aug 2002 17:01:05 +0000 (17:01 -0000)
svn path=/trunk/yasm/; revision=659

libyasm/valparam.c
libyasm/valparam.h
src/valparam.c
src/valparam.h

index 05ab9644e3079495d7896e6123152eccecbd7e0c..2339af9b109bcda124280d2b7ec5b8296ad11e6b 100644 (file)
@@ -45,9 +45,9 @@ vps_delete(valparamhead *headp)
 }
 
 void
-vps_print(FILE *f, valparamhead *headp)
+vps_print(FILE *f, const valparamhead *headp)
 {
-    valparam *vp;
+    const valparam *vp;
 
     if(!headp) {
        fprintf(f, "(none)");
index 98bce3b1eab5f503476eee1ff90221ae037ce386..cad2446f4e4f548e37e13adb47d29f41eceefcd4 100644 (file)
@@ -54,6 +54,6 @@ void vps_append(valparamhead *headp, /*@keep@*/ valparam *vp);
 
 #define vps_foreach(iter, headp)    STAILQ_FOREACH(iter, headp, link)
 
-void vps_print(FILE *f, /*@null@*/ valparamhead *headp);
+void vps_print(FILE *f, /*@null@*/ const valparamhead *headp);
 
 #endif
index 05ab9644e3079495d7896e6123152eccecbd7e0c..2339af9b109bcda124280d2b7ec5b8296ad11e6b 100644 (file)
@@ -45,9 +45,9 @@ vps_delete(valparamhead *headp)
 }
 
 void
-vps_print(FILE *f, valparamhead *headp)
+vps_print(FILE *f, const valparamhead *headp)
 {
-    valparam *vp;
+    const valparam *vp;
 
     if(!headp) {
        fprintf(f, "(none)");
index 98bce3b1eab5f503476eee1ff90221ae037ce386..cad2446f4e4f548e37e13adb47d29f41eceefcd4 100644 (file)
@@ -54,6 +54,6 @@ void vps_append(valparamhead *headp, /*@keep@*/ valparam *vp);
 
 #define vps_foreach(iter, headp)    STAILQ_FOREACH(iter, headp, link)
 
-void vps_print(FILE *f, /*@null@*/ valparamhead *headp);
+void vps_print(FILE *f, /*@null@*/ const valparamhead *headp);
 
 #endif