mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-02 22:21:39 +03:00
* edit.c (edit_execute_cmd): Fool gcc to prevent Y2K warning.
This commit is contained in:
parent
e3bc0b2b86
commit
2b9d151923
@ -1,5 +1,7 @@
|
||||
2002-11-12 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* edit.c (edit_execute_cmd): Fool gcc to prevent Y2K warning.
|
||||
|
||||
* editwidget.c (edit_adjust_size): Use find_buttonbar().
|
||||
|
||||
2002-11-11 Pavel Roskin <proski@gnu.org>
|
||||
|
@ -2427,7 +2427,9 @@ int edit_execute_cmd (WEdit * edit, int command, int char_for_insertion)
|
||||
time_t t;
|
||||
#ifdef HAVE_STRFTIME
|
||||
char s[1024];
|
||||
static const char time_format[] = "%c";
|
||||
/* fool gcc to prevent a Y2K warning */
|
||||
char time_format[] = "_c";
|
||||
time_format[0] = '%';
|
||||
#endif
|
||||
time (&t);
|
||||
#ifdef HAVE_STRFTIME
|
||||
|
Loading…
x
Reference in New Issue
Block a user