Commit 310de047eef6685274045db1e6b39c9f313df428

Authored by James Morris
1 parent 77c160e779

selinux: fix warning in genheaders

Fix const warning in the genheaders script as a result of
changes to the headers, as noted here:

http://linux.derkeiler.com/Mailing-Lists/Kernel/2010-03/msg03977.html

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: James Morris <jmorris@namei.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

scripts/selinux/genheaders/genheaders.c
... ... @@ -81,7 +81,7 @@
81 81 fprintf(fout, "\n");
82 82  
83 83 for (i = 1; i < isids_len; i++) {
84   - char *s = initial_sid_to_string[i];
  84 + const char *s = initial_sid_to_string[i];
85 85 fprintf(fout, "#define SECINITSID_%s", s);
86 86 for (j = 0; j < max(1, 40 - strlen(s)); j++)
87 87 fprintf(fout, " ");