commit 83ed72f1b550bd0f43e2950669c15fa09cfc4859 from: Omar Polo date: Mon Jan 03 21:44:48 2022 UTC mark last_time_crashed as static commit - 6c8ddaceb64160cd5a59eae137ee90fce2aa19ee commit + 83ed72f1b550bd0f43e2950669c15fa09cfc4859 blob - 8832cd12fe87631e36a59975250f547a60022316 blob + 00c622fa9fc5ec86cc0db1acca0159e026fe9a1a --- fs.c +++ fs.c @@ -60,6 +60,7 @@ static void getenv_default(char*, const char*, const static void mkdirs(const char*, mode_t); static void init_paths(void); static void load_last_session(void); +static int last_time_crashed(void); static void load_certs(void); static struct imsgev *iev_ui; @@ -817,15 +818,13 @@ fs_main(void) return 0; } - - /* * Check if the last time telescope crashed. The check is done by * looking at `crashed_file': if it exists then last time we crashed. * Then, while here, touch the file too. During IMSG_QUIT we'll * remove it. */ -int +static int last_time_crashed(void) { int fd, crashed = 1; blob - c7f67ee3bcf557fad065232a7ae38a2d58181698 blob + dba9ac89d1addac2c28c57322f92b98d7315a1de --- fs.h +++ fs.h @@ -34,7 +34,6 @@ extern char session_file[PATH_MAX]; int fs_init(void); int fs_main(void); -int last_time_crashed(void); int lock_session(void); #endif