/* PSPP - computes sample statistics.
Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc.
- Written by Ben Pfaff <blp@gnu.org>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
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;
static char start_date[12];
if (start_date[0] == '\0')
get_cur_date (start_date);
- return start_date;
+ return start_date;
}