Diff for /embedaddon/sudo/plugins/sudoers/locale.c between versions 1.1.1.1 and 1.1.1.3

version 1.1.1.1, 2013/07/22 10:46:12 version 1.1.1.3, 2014/06/15 16:12:54
Line 38 Line 38
 # include "compat/stdbool.h"  # include "compat/stdbool.h"
 #endif /* HAVE_STDBOOL_H */  #endif /* HAVE_STDBOOL_H */
   
   #define DEFAULT_TEXT_DOMAIN     "sudoers"
   #include "gettext.h"            /* must be included before missing.h */
   
 #include "missing.h"  #include "missing.h"
#include "error.h"#include "fatal.h"
 #include "alloc.h"  #include "alloc.h"
 #include "logging.h"  #include "logging.h"
 #include "gettext.h"  
   
 static int current_locale = SUDOERS_LOCALE_USER;  static int current_locale = SUDOERS_LOCALE_USER;
 static char *user_locale;  static char *user_locale;
Line 108  sudoers_setlocale(int newlocale, int *prevlocale) Line 110  sudoers_setlocale(int newlocale, int *prevlocale)
     return res ? true : false;      return res ? true : false;
 }  }
   
static int warning_locale;#ifdef HAVE_LIBINTL_H
char *
voidwarning_gettext(const char *msgid)
warning_set_locale(void) 
 {  {
    sudoers_setlocale(SUDOERS_LOCALE_USER, &warning_locale);    int warning_locale;
}    char *msg;
   
void    sudoers_setlocale(SUDOERS_LOCALE_USER, &warning_locale);
warning_restore_locale(void)    msg = gettext(msgid);
{ 
     sudoers_setlocale(warning_locale, NULL);      sudoers_setlocale(warning_locale, NULL);
   
       return msg;
 }  }
   #endif /* HAVE_LIBINTL_H */

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>