From: H.G. Muller Date: Fri, 27 Dec 2013 21:00:43 +0000 (+0100) Subject: Write -date stamp always with 10 characters X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0d7cbd3e93e8868922b92d5ada9a41991bbcfe8b;p=xboard.git Write -date stamp always with 10 characters To make it easier to replace date stamps on uninstall, we give them fixed length. --- diff --git a/args.h b/args.h index 3a1347a..0c403de 100644 --- a/args.h +++ b/args.h @@ -102,8 +102,8 @@ typedef struct { IcsTextMenuEntry icsTextMenuEntry[ICS_TEXT_MENU_SIZE]; int junk; -int saveDate; -int dateStamp; +unsigned int saveDate; +unsigned int dateStamp; Boolean singleList; Boolean autoClose; char *homeDir; @@ -850,7 +850,7 @@ AppendToSettingsFile (char *line) if(f = fopen(SETTINGS_FILE, "a")) { TimeMark now; GetTimeMark(&now); - fprintf(f, "-date %ld\n%s\n", now.sec, line); + fprintf(f, "-date %10lu\n%s\n", now.sec, line); fclose(f); } }