const modifier added
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 25 Mar 2003 14:00:25 +0000 (14:00 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 25 Mar 2003 14:00:25 +0000 (14:00 +0000)
[r963]

ir/common/firm_common.c
ir/common/firm_common.h

index a996e7b..0011ef7 100644 (file)
@@ -18,7 +18,7 @@
 
 /* returns the kind of the thing */
 firm_kind
-get_kind (void *firm_thing) {
+get_kind (const void *firm_thing) {
   assert (firm_thing);
   return *(firm_kind *)firm_thing;
 }
index 831c37c..332bc45 100644 (file)
@@ -36,7 +36,7 @@ typedef enum {
  *
  * @param firm_thing  pointer repraesenting a firm object
  */
-firm_kind get_kind(void *firm_thing);
+firm_kind get_kind(const void *firm_thing);
 
 /** Returns the kind of a thing as a string. */
 const char* print_firm_kind(void *firm_thing);