diff options
| author | Paul Eggert | 2023-08-15 15:55:08 -0700 |
|---|---|---|
| committer | Paul Eggert | 2023-08-15 15:55:40 -0700 |
| commit | cc5649bd2840de4d339b9cf4a3735d316a4a759d (patch) | |
| tree | 44225b863d5eaa2dbd11274a58349a4e24f64c5a /src | |
| parent | 63d8d652298861581a7b9a7e44273164fa5aa4af (diff) | |
| download | emacs-cc5649bd2840de4d339b9cf4a3735d316a4a759d.tar.gz emacs-cc5649bd2840de4d339b9cf4a3735d316a4a759d.zip | |
Simplify get_boot_sec
* src/filelock.c (get_boot_sec):
Simplify by removing a special case for MS-DOS.
* src/msdos.c (get_boot_time): New dummy that always fails.
Diffstat (limited to 'src')
| -rw-r--r-- | src/filelock.c | 14 | ||||
| -rw-r--r-- | src/msdos.c | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/filelock.c b/src/filelock.c index f3075b93322..c2b306ab47d 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -118,16 +118,10 @@ get_boot_sec (void) | |||
| 118 | if (will_dump_p ()) | 118 | if (will_dump_p ()) |
| 119 | return 0; | 119 | return 0; |
| 120 | 120 | ||
| 121 | #ifndef MSDOS | 121 | struct timespec boot_time; |
| 122 | { | 122 | boot_time.tv_sec = 0; |
| 123 | struct timespec boot_time; | 123 | get_boot_time (&boot_time); |
| 124 | boot_time.tv_sec = 0; | 124 | return boot_time.tv_sec; |
| 125 | get_boot_time (&boot_time); | ||
| 126 | return boot_time.tv_sec; | ||
| 127 | } | ||
| 128 | #else /* MSDOS */ | ||
| 129 | return 0; | ||
| 130 | #endif /* MSDOS */ | ||
| 131 | } | 125 | } |
| 132 | 126 | ||
| 133 | /* An arbitrary limit on lock contents length. 8 K should be plenty | 127 | /* An arbitrary limit on lock contents length. 8 K should be plenty |
diff --git a/src/msdos.c b/src/msdos.c index 1b7f2d4ae21..20af5353e70 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -4286,6 +4286,12 @@ init_gettimeofday (void) | |||
| 4286 | } | 4286 | } |
| 4287 | #endif | 4287 | #endif |
| 4288 | 4288 | ||
| 4289 | int | ||
| 4290 | get_boot_time (struct timespec *p_boot_time) | ||
| 4291 | { | ||
| 4292 | return -1; | ||
| 4293 | } | ||
| 4294 | |||
| 4289 | static void | 4295 | static void |
| 4290 | msdos_abort (void) | 4296 | msdos_abort (void) |
| 4291 | { | 4297 | { |