From ea8b252cb30c4b4463df43a5342af95931920f09 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 2 Jun 2010 12:57:26 +0200 Subject: *: better string sharing text data bss dec hex filename 849427 441 7556 857424 d1550 busybox_old 849355 441 7556 857352 d1508 busybox_unstripped Signed-off-by: Denys Vlasenko --- modutils/modutils-24.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modutils') diff --git a/modutils/modutils-24.c b/modutils/modutils-24.c index 5c1611c29..7f39e253d 100644 --- a/modutils/modutils-24.c +++ b/modutils/modutils-24.c @@ -3529,20 +3529,18 @@ static void set_tainted(int fd, const char *m_name, /* Check if loading this module will taint the kernel. */ static void check_tainted_module(struct obj_file *f, const char *m_name) { - static const char tainted_file[] ALIGN1 = TAINT_FILENAME; - int fd, kernel_has_tainted; const char *ptr; kernel_has_tainted = 1; - fd = open(tainted_file, O_RDWR); + fd = open(TAINT_FILENAME, O_RDWR); if (fd < 0) { if (errno == ENOENT) kernel_has_tainted = 0; else if (errno == EACCES) kernel_has_tainted = 1; else { - perror(tainted_file); + perror(TAINT_FILENAME); kernel_has_tainted = 0; } } -- cgit v1.2.3