bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: remove unused include and definitions


From: Jim Meyering
Subject: [PATCH] maint: remove unused include and definitions
Date: Sun, 15 Mar 2009 08:18:44 +0100

Minor clean-up:

>From 20d523bfa252b184f489a9de91ad9c9a9c021e19 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sat, 14 Mar 2009 12:48:44 +0100
Subject: [PATCH] maint: remove unused include and definitions

* gl/lib/randread.c (__attribute__): Remove unused definition.
(ATTRIBUTE_UNUSED): Likewise.
* gl/lib/selinux-at.c (_): Remove unused definition.
Don't include <gettext.h>.  No longer needed.
---
 gl/lib/randread.c   |   12 +-----------
 gl/lib/selinux-at.c |    5 +----
 2 files changed, 2 insertions(+), 15 deletions(-)

diff --git a/gl/lib/randread.c b/gl/lib/randread.c
index 8dfb899..b81a451 100644
--- a/gl/lib/randread.c
+++ b/gl/lib/randread.c
@@ -1,6 +1,6 @@
 /* Generate buffers of random data.

-   Copyright (C) 2006, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2008-2009 Free Software Foundation, Inc.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -43,16 +43,6 @@
 # define MIN(a, b) ((a) < (b) ? (a) : (b))
 #endif

-#ifndef __attribute__
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
-#  define __attribute__(x)
-# endif
-#endif
-
-#ifndef ATTRIBUTE_UNUSED
-# define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
-#endif
-
 #if _STRING_ARCH_unaligned
 # define ALIGNED_POINTER(ptr, type) true
 #else
diff --git a/gl/lib/selinux-at.c b/gl/lib/selinux-at.c
index 0d94a04..18e6b0f 100644
--- a/gl/lib/selinux-at.c
+++ b/gl/lib/selinux-at.c
@@ -1,5 +1,5 @@
 /* openat-style fd-relative functions for SE Linux
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2009 Free Software Foundation, Inc.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -29,9 +29,6 @@
 #include "dirname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
 #include "save-cwd.h"

-#include "gettext.h"
-#define _(msgid) gettext (msgid)
-
 #include "openat-priv.h"

 #define AT_FUNC_NAME getfileconat
--
1.6.2.rc1.285.gc5f54




reply via email to

[Prev in Thread] Current Thread [Next in Thread]