]> git.eshelyaron.com Git - emacs.git/commit
Simplify lockfile name calculation
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Aug 2023 20:57:13 +0000 (13:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Aug 2023 20:59:44 +0000 (13:59 -0700)
commit4a2367d2f0199a95f25297ef2c5948768e2b01da
treedb3c863a5f364207afb2029ea7e180ec9e6edb81
parent7cd8236d35c033fefb7be742e6c3290c63eaf609
Simplify lockfile name calculation

* src/filelock.c (get_boot_time):
Move ‘counter’ decl to simplify #ifdef nesting.
(lock_file_1): Refactor two snprintf calls into one.
Don’t assume INT_MAX < SIZE_MAX.
src/filelock.c