chiark / gitweb /
More general error handling for sinks
[disorder] / lib / xgetdate.c
index ae9e183ab448518a68887a67b1afc9c48cae9cfa..42e2d5cd43ce21514f394deb7411eb8b559fa76c 100644 (file)
@@ -119,14 +119,12 @@ xgetdate_r (const char *string, struct tm *tp,
            const char *const *template)
 {
   const char *line;
-  size_t len;
   char *result = NULL;
   time_t timer;
   struct tm tm;
   int mday_ok = 0;
 
   line = NULL;
-  len = 0;
   while((line = *template++))
     {
       /* Do the conversion.  */