put the gettext define in one place

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
John Johansen 2014-08-23 23:50:43 -07:00
parent 0465bdbf81
commit 9fe1e72c44
16 changed files with 4 additions and 38 deletions

View file

@ -30,8 +30,6 @@
#include "parser_yacc.h"
#include "dbus.h"
#define _(s) gettext(s)
int parse_dbus_mode(const char *str_mode, int *mode, int fail)
{

View file

@ -24,7 +24,6 @@
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
#define _(s) gettext(s)
#include <sys/stat.h>
#include <sys/types.h>

View file

@ -28,6 +28,9 @@
#include <netinet/in.h>
#include <sys/resource.h>
#include <libintl.h>
#define _(s) gettext(s)
#include "immunix.h"
#include "libapparmor_re/apparmor_re.h"
#include "libapparmor_re/aare_rules.h"

View file

@ -20,8 +20,6 @@
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <libintl.h>
#define _(s) gettext(s)
#include "immunix.h"
#include "parser.h"

View file

@ -17,9 +17,7 @@
*/
#include <stdlib.h>
#include <stdarg.h>
#include <libintl.h>
#include <locale.h>
#define _(s) gettext(s)
#include "parser.h"
/* Policy versioning is determined by a combination of 3 values:

View file

@ -44,11 +44,9 @@
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <libintl.h>
#include <dirent.h>
#include "parser.h"
#include "parser_include.h"
#define _(s) gettext(s)
/* An array of search directories, I sure hope 100's enough */
#define MAX_PATH 100

View file

@ -24,8 +24,6 @@
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <libintl.h>
#define _(s) gettext(s)
#include <string>
#include <sstream>
@ -37,11 +35,6 @@
#include <unistd.h>
#include <linux/unistd.h>
#include <libintl.h>
#define _(s) gettext(s)
#define SD_CODE_SIZE (sizeof(u8))
#define SD_STR_LEN (sizeof(u16))

View file

@ -29,7 +29,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libintl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@ -38,8 +37,6 @@
#include <unordered_map>
#include <string>
#define _(s) gettext(s)
#include "parser.h"
#include "profile.h"
#include "parser_include.h"

View file

@ -28,10 +28,7 @@
#include <getopt.h>
#include <errno.h>
#include <fcntl.h>
#include <libintl.h>
#include <locale.h>
#include <dirent.h>
#define _(s) gettext(s)
/* enable the following line to get voluminous debug info */
/* #define DEBUG */

View file

@ -21,8 +21,6 @@
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <libintl.h>
#define _(s) gettext(s)
#include "parser.h"
#include "profile.h"

View file

@ -26,8 +26,6 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <libintl.h>
#define _(s) gettext(s)
#include <netinet/in.h>
#include <linux/socket.h>
#include <linux/limits.h>

View file

@ -26,9 +26,7 @@
#include <stdarg.h>
#include <search.h>
#include <string.h>
#include <libintl.h>
#include <errno.h>
#define _(s) gettext(s)
#include "parser.h"
#include "profile.h"

View file

@ -19,10 +19,8 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <libintl.h>
#include <linux/limits.h>
#include <sys/apparmor.h>
#define _(s) gettext(s)
#include <iomanip>
#include <string>

View file

@ -20,9 +20,7 @@
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <libintl.h>
#include <linux/limits.h>
#define _(s) gettext(s)
#include "immunix.h"
#include "parser.h"

View file

@ -21,13 +21,10 @@
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <libintl.h>
#include <linux/limits.h>
#include <string>
#define _(s) gettext(s)
/* #define DEBUG */
#include "parser.h"

View file

@ -26,11 +26,9 @@
#include <getopt.h>
#include <errno.h>
#include <fcntl.h>
#include <libintl.h>
#include <sys/apparmor.h>
#include <iostream>
#define _(s) gettext(s)
/* #define DEBUG */