Skip to content

Commit

Permalink
kconfig: fix MAC OS X warnings in menuconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Timur Tabi <timur@freescale.com>
  • Loading branch information
Sam Ravnborg committed May 4, 2008
1 parent ac55182 commit c4143a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/kconfig/lkc.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#ifndef KBUILD_NO_NLS
# include <libintl.h>
#else
# define gettext(Msgid) ((const char *) (Msgid))
# define textdomain(Domainname) ((const char *) (Domainname))
# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
static inline const char *gettext(const char *txt) { return txt; }
static inline void textdomain(const char *domainname) {}
static inline void bindtextdomain(const char *name, const char *dir) {}
#endif

#ifdef __cplusplus
Expand Down
3 changes: 2 additions & 1 deletion scripts/kconfig/mconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ static void conf_string(struct menu *menu)

while (1) {
int res;
char *heading;
const char *heading;

switch (sym_get_type(menu->sym)) {
case S_INT:
Expand Down Expand Up @@ -925,3 +925,4 @@ int main(int ac, char **av)

return 0;
}

0 comments on commit c4143a8

Please sign in to comment.