Comment out of the forward scan to avoid a compiler warning about an
unused function.
---
 from.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/from.c b/from.c
index f833a8e9..0f523dcd 100644
--- a/from.c
+++ b/from.c
@@ -90,6 +90,7 @@ static int check_year (const char *s)
   return yr > 1900 ? yr - 1900 : (yr < 70 ? yr + 100 : yr);
 }
 
+#if 0
 static int is_from_forward_scan (const char *s,
                                  char *path, size_t pathlen,
                                  struct tm *tm)
@@ -205,6 +206,7 @@ static int is_from_forward_scan (const char *s,
 
   return 1;
 }
+#endif
 
 static int is_from_reverse_scan (const char * const bos,
                                  char *path, size_t pathlen,
@@ -310,7 +312,7 @@ int is_from (const char *s, char *path, size_t pathlen, 
time_t *tp)
 
   dprint (3, (debugfile, "\nis_from(): parsing: %s", s));
 
-  if (!is_from_forward_scan (s, path, pathlen, &tm))
+  if (!is_from_reverse_scan (s, path, pathlen, &tm))
     return 0;
 
   dprint (3, (debugfile,
-- 
2.52.0

Reply via email to