`%y' format causes a gcc warning

Signed-off-by: MORITA Kazutaka <[email protected]>
---
 collie/collie.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/collie/collie.c b/collie/collie.c
index 714eeac..3d77077 100644
--- a/collie/collie.c
+++ b/collie/collie.c
@@ -909,7 +909,7 @@ static int cluster_info(int argc, char **argv)
                printf("%s\n", sd_strerror(rsp->result));
 
        printf("\n");
-       printf("Ctime              Epoch Nodes\n");
+       printf("Ctime                Epoch Nodes\n");
        nr_logs = rsp->data_length / sizeof(struct epoch_log);
        for (i = 0; i < nr_logs; i++) {
                int j;
@@ -918,7 +918,7 @@ static int cluster_info(int argc, char **argv)
 
                ti = logs[i].ctime >> 32;
                localtime_r(&ti, &tm);
-               strftime(time_str, sizeof(time_str), "%y-%m-%d %H:%M:%S", &tm);
+               strftime(time_str, sizeof(time_str), "%Y-%m-%d %H:%M:%S", &tm);
 
                printf("%s %6d", time_str, logs[i].epoch);
                printf(" [");
-- 
1.5.6.5

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to