diff options
Diffstat (limited to 'scripts/kconfig/kxgettext.c')
-rw-r--r-- | scripts/kconfig/kxgettext.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/kconfig/kxgettext.c b/scripts/kconfig/kxgettext.c index dcc3fcc0cc9a..e9d8e791bf0d 100644 --- a/scripts/kconfig/kxgettext.c +++ b/scripts/kconfig/kxgettext.c | |||
@@ -63,11 +63,11 @@ next: | |||
63 | 63 | ||
64 | struct file_line { | 64 | struct file_line { |
65 | struct file_line *next; | 65 | struct file_line *next; |
66 | char* file; | 66 | const char *file; |
67 | int lineno; | 67 | int lineno; |
68 | }; | 68 | }; |
69 | 69 | ||
70 | static struct file_line *file_line__new(char *file, int lineno) | 70 | static struct file_line *file_line__new(const char *file, int lineno) |
71 | { | 71 | { |
72 | struct file_line *self = malloc(sizeof(*self)); | 72 | struct file_line *self = malloc(sizeof(*self)); |
73 | 73 | ||
@@ -90,7 +90,8 @@ struct message { | |||
90 | 90 | ||
91 | static struct message *message__list; | 91 | static struct message *message__list; |
92 | 92 | ||
93 | static struct message *message__new(const char *msg, char *option, char *file, int lineno) | 93 | static struct message *message__new(const char *msg, char *option, |
94 | const char *file, int lineno) | ||
94 | { | 95 | { |
95 | struct message *self = malloc(sizeof(*self)); | 96 | struct message *self = malloc(sizeof(*self)); |
96 | 97 | ||
@@ -130,7 +131,8 @@ static struct message *mesage__find(const char *msg) | |||
130 | return m; | 131 | return m; |
131 | } | 132 | } |
132 | 133 | ||
133 | static int message__add_file_line(struct message *self, char *file, int lineno) | 134 | static int message__add_file_line(struct message *self, const char *file, |
135 | int lineno) | ||
134 | { | 136 | { |
135 | int rc = -1; | 137 | int rc = -1; |
136 | struct file_line *fl = file_line__new(file, lineno); | 138 | struct file_line *fl = file_line__new(file, lineno); |
@@ -145,7 +147,8 @@ out: | |||
145 | return rc; | 147 | return rc; |
146 | } | 148 | } |
147 | 149 | ||
148 | static int message__add(const char *msg, char *option, char *file, int lineno) | 150 | static int message__add(const char *msg, char *option, const char *file, |
151 | int lineno) | ||
149 | { | 152 | { |
150 | int rc = 0; | 153 | int rc = 0; |
151 | char bf[16384]; | 154 | char bf[16384]; |