summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sbin/create_c_stuff.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbin/create_c_stuff.pl b/lib/sbin/create_c_stuff.pl
index b7d15826..cf635e5a 100644
--- a/lib/sbin/create_c_stuff.pl
+++ b/lib/sbin/create_c_stuff.pl
@@ -199,7 +199,7 @@ sub CreateCStructureParameterHeader
my $realname = $rhparameter_db->{"\U$rhparameters->{$parameter} $parameter\E realname"};
push(@data, " $type_string $realname$suffix;");
- push(@definition, " const $type_string $varprefix$parameter = $structure.$realname; \\");
+ push(@definition, " const $type_string $varprefix$parameter = (const $type_string $varprefix)$structure.$realname; \\");
push(@use, " (void) ($parameter + 0); \\");
}