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.
This commit is contained in:
parent
63d8d65229
commit
cc5649bd28
2 changed files with 10 additions and 10 deletions
|
@ -118,16 +118,10 @@ get_boot_sec (void)
|
|||
if (will_dump_p ())
|
||||
return 0;
|
||||
|
||||
#ifndef MSDOS
|
||||
{
|
||||
struct timespec boot_time;
|
||||
boot_time.tv_sec = 0;
|
||||
get_boot_time (&boot_time);
|
||||
return boot_time.tv_sec;
|
||||
}
|
||||
#else /* MSDOS */
|
||||
return 0;
|
||||
#endif /* MSDOS */
|
||||
struct timespec boot_time;
|
||||
boot_time.tv_sec = 0;
|
||||
get_boot_time (&boot_time);
|
||||
return boot_time.tv_sec;
|
||||
}
|
||||
|
||||
/* An arbitrary limit on lock contents length. 8 K should be plenty
|
||||
|
|
|
@ -4286,6 +4286,12 @@ init_gettimeofday (void)
|
|||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
get_boot_time (struct timespec *p_boot_time)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
static void
|
||||
msdos_abort (void)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue