summaryrefslogtreecommitdiff
path: root/radius
diff options
context:
space:
mode:
authorSam Hartman <hartmans@debian.org>2017-08-12 08:46:05 -0400
committerSam Hartman <hartmans@debian.org>2017-08-12 09:18:30 -0400
commita610bd308c6aa1d8a423fbfeac0c440f093e7b55 (patch)
tree5011e8c99f7346a29c5ae6e5f63ff179b9d10d4b /radius
parent0c38286eba790ef1110e9e981d23b1bfb0965611 (diff)
Make names array with constant pointer; cdecl fix
Diffstat (limited to 'radius')
-rw-r--r--radius/client.h2
-rwxr-xr-xradius/convert.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/radius/client.h b/radius/client.h
index ab4718a..2f81625 100644
--- a/radius/client.h
+++ b/radius/client.h
@@ -654,7 +654,7 @@ extern const int nr_dict_num_names;
* \attention This variable should only be accessed by internal RADIUS library
* functions.
*/
-extern const DICT_ATTR const *nr_dict_attr_names[];
+extern const DICT_ATTR * const nr_dict_attr_names[];
/** Static array containing names the RADIUS_PACKET::code field. \ingroup dict
*
diff --git a/radius/convert.pl b/radius/convert.pl
index 7ca424e..ba9ed4e 100755
--- a/radius/convert.pl
+++ b/radius/convert.pl
@@ -139,7 +139,7 @@ print DICT "const int nr_dict_num_attrs = ", $offset - 1, ";\n\n";
print DICT "const int nr_dict_num_names = ", $num_names - 1, ";\n\n";
my $offset = 0;
-print DICT "const DICT_ATTR *nr_dict_attr_names[] = {\n";
+print DICT "const DICT_ATTR * const nr_dict_attr_names[] = {\n";
foreach $attr_val (sort {lc($attributes{$a}{'name'}) cmp lc($attributes{$b}{'name'})} keys %attributes) {
next if (defined $attributes{$attr_val}{'raw'});