findutils-patches
[Top][All Lists]
Advanced

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

[Findutils-patches] [PATCH 5/5] maint: avoid -Werror=missing-prototypes


From: Bernhard Voelker
Subject: [Findutils-patches] [PATCH 5/5] maint: avoid -Werror=missing-prototypes warning in oldfind
Date: Thu, 2 Feb 2017 00:17:23 +0100

oldfind.c:169:1: error: no previous prototype for ‘get_current_dirfd’ 
[-Werror=missing-prototypes]
 get_current_dirfd (void)
 ^~~~~~~~~~~~~~~~~

* find/oldfind.c (get_current_dirfd): Remove unused function.
---
 find/oldfind.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/find/oldfind.c b/find/oldfind.c
index d9f2d40d..fdaa4468 100644
--- a/find/oldfind.c
+++ b/find/oldfind.c
@@ -159,12 +159,6 @@ type_to_mode (unsigned type)
 #endif
 
 
-int
-get_current_dirfd (void)
-{
-  return AT_FDCWD;
-}
-
 /* CAUTION: this is the entry point for the oldfind executable, which is not 
the binary that
  * will actually get installed.   See ftsfind.c. */
 int
-- 
2.11.0




reply via email to

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