From 75bf2687f404f557b206ab44b59fe729ac43b7c0 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 25 Mar 2003 14:00:25 +0000 Subject: [PATCH] const modifier added [r963] --- ir/common/firm_common.c | 2 +- ir/common/firm_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/common/firm_common.c b/ir/common/firm_common.c index a996e7b1f..0011ef7cb 100644 --- a/ir/common/firm_common.c +++ b/ir/common/firm_common.c @@ -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; } diff --git a/ir/common/firm_common.h b/ir/common/firm_common.h index 831c37cf8..332bc45b8 100644 --- a/ir/common/firm_common.h +++ b/ir/common/firm_common.h @@ -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); -- 2.20.1