Browse code

rename the 'class' variable -- reserved keyword in c++

Miklos Tirpak authored on 06/11/2009 16:35:12
Showing 2 changed files
... ...
@@ -786,7 +786,7 @@ again:
786 786
 			goto error;
787 787
 		}
788 788
 		rd->type=rtype;
789
-		rd->class=class;
789
+		rd->pclass=class;
790 790
 		rd->ttl=ttl;
791 791
 		rd->next=0;
792 792
 		memcpy(rd->name, rec_name, rec_name_len);
... ...
@@ -930,7 +930,7 @@ again:
930 930
 			goto error;
931 931
 		}
932 932
 		rd->type=T_CNAME;
933
-		rd->class=fullname_rd->class;
933
+		rd->pclass=fullname_rd->pclass;
934 934
 		rd->ttl=fullname_rd->ttl;
935 935
 		rd->next=head;
936 936
 		memcpy(rd->name, name, name_len);
... ...
@@ -88,7 +88,7 @@ union dns_query{
88 88
 /* rdata struct*/
89 89
 struct rdata {
90 90
 	unsigned short type;
91
-	unsigned short class;
91
+	unsigned short pclass;
92 92
 	unsigned int   ttl;
93 93
 	void* rdata;
94 94
 	struct rdata* next;