coreutils
[Top][All Lists]
Advanced

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

[PATCH] maint: tail: mark a global variable as static


From: Jim Meyering
Subject: [PATCH] maint: tail: mark a global variable as static
Date: Wed, 11 May 2011 17:20:01 +0200

Also tight-scope related:

>From 2141543a3703cdb29cda41b1562f53f79215959c Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sun, 8 May 2011 15:50:52 +0200
Subject: [PATCH] maint: tail: mark a global variable as static

* src/tail.c [HAVE_INOTIFY] (inotify_wd_mask): Declare static.
---
 src/tail.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tail.c b/src/tail.c
index e6d8164..714e278 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -159,8 +159,8 @@ struct File_spec
 #if HAVE_INOTIFY
 /* The events mask used with inotify on files.  This mask is not used on
    directories.  */
-const uint32_t inotify_wd_mask = (IN_MODIFY | IN_ATTRIB | IN_DELETE_SELF
-                                  | IN_MOVE_SELF);
+static const uint32_t inotify_wd_mask = (IN_MODIFY | IN_ATTRIB
+                                         | IN_DELETE_SELF | IN_MOVE_SELF);
 #endif

 /* Keep trying to open a file even if it is inaccessible when tail starts
--
1.7.5.1.354.g761178



reply via email to

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