Skip to content

Commit

Permalink
selinux: fix warning in genheaders
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
James Morris committed Mar 15, 2010
1 parent 77c160e commit 310de04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/selinux/genheaders/genheaders.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int main(int argc, char *argv[])
fprintf(fout, "\n");

for (i = 1; i < isids_len; i++) {
char *s = initial_sid_to_string[i];
const char *s = initial_sid_to_string[i];
fprintf(fout, "#define SECINITSID_%s", s);
for (j = 0; j < max(1, 40 - strlen(s)); j++)
fprintf(fout, " ");
Expand Down

0 comments on commit 310de04

Please sign in to comment.