Whamcloud - gitweb
debugfs: fix typo in commit 5a1d25a7b
authorTheodore Ts'o <tytso@mit.edu>
Thu, 9 Jan 2014 19:30:43 +0000 (14:30 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 9 Jan 2014 19:30:43 +0000 (14:30 -0500)
The typo causes a compiler warning, but it's otherwise harmless.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/util.c

index cf46cc3..9ddfe0b 100644 (file)
@@ -231,8 +231,8 @@ time_t string_to_time(const char *arg)
        }
        memset(&ts, 0, sizeof(ts));
 #ifdef HAVE_STRPTIME
-       ret = strptime(arg, "%Y%m%d%H%M%S", &ts);
-       if (ret == NULL)
+       tmp = strptime(arg, "%Y%m%d%H%M%S", &ts);
+       if (tmp == NULL)
                goto fallback;
 #else
        sscanf(arg, "%4d%2d%2d%2d%2d%2d", &ts.tm_year, &ts.tm_mon,