X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fstart-date.c;h=68aa3a78461cbdb868a6b30cc21bde58bbde4759;hb=f5c108becd49d78f4898cab11352291f5689d24e;hp=0f587fb3fc4dc821bc73e1b1a8aa0c5f5c380c87;hpb=7eee0554f378481faf447e2d2e940f389d6b05ec;p=pspp-builds.git diff --git a/src/libpspp/start-date.c b/src/libpspp/start-date.c index 0f587fb3..68aa3a78 100644 --- a/src/libpspp/start-date.c +++ b/src/libpspp/start-date.c @@ -28,10 +28,10 @@ static void get_cur_date (char cur_date[12]) { time_t now = time (NULL); - if (now != (time_t) -1) + if (now != (time_t) -1) { struct tm *tm = localtime (&now); - if (tm != NULL) + if (tm != NULL) { strftime (cur_date, 12, "%d %b %Y", tm); return; @@ -48,5 +48,5 @@ get_start_date (void) static char start_date[12]; if (start_date[0] == '\0') get_cur_date (start_date); - return start_date; + return start_date; }