diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-12-05 16:17:45 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-12-06 08:08:57 +0100 |
commit | f989406acd1726606def5ea0e19bd2399116ae83 (patch) | |
tree | dec5464ff6dfcb4a2276fcd8620742df69563259 /solenv/lockfile/lockfile.h | |
parent | b2e3cfb19e7dd3e2986ff0fb3e0bc38d19a37ac2 (diff) |
Fix lockfile compiler warnings
Now that we've patched the source for typos in commit
921c2059f9a85ab5ad26463e864e49d4e7b48d9e ("Fix typos"),
also fix the compiler warnings.
Change-Id: I0e1f1bfe19a475c431d2244257e245482950a843
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126380
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'solenv/lockfile/lockfile.h')
-rw-r--r-- | solenv/lockfile/lockfile.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/solenv/lockfile/lockfile.h b/solenv/lockfile/lockfile.h index 12e7d494bb05..945db9cb9263 100644 --- a/solenv/lockfile/lockfile.h +++ b/solenv/lockfile/lockfile.h @@ -10,8 +10,8 @@ * General Public License can be found in `/usr/doc/copyright/LGPL'. * You can also find a copy on the GNU website at http://www.gnu.org/ */ -#ifndef _LOCKFILE_H -#define _LOCKFILE_H +#ifndef LOCKFILE_H_ +#define LOCKFILE_H_ #ifdef __cplusplus extern "C" { @@ -47,17 +47,24 @@ int lockfile_check(const char *lockfile, int flags); /* * Experimental. */ -struct __lockargs { +struct lockargs_s_ { int interval; /* Static interval between retries */ }; -#define __L_INTERVAL 64 /* Specify consistent retry interval */ +#define L_INTERVAL_D_ 64 /* Specify consistent retry interval */ #ifdef LOCKFILE_EXPERIMENTAL -#define lockargs __lockargs -#define L_INTERVAL __L_INTERVAL +#define lockargs lockargs_s_ +#define L_INTERVAL L_INTERVAL_D_ int lockfile_create2(const char *lockfile, int retries, int flags, struct lockargs *args, int args_sz); #endif +#ifndef LIB +int check_sleep(int, int); +#endif +int is_maillock(const char *lockfile); +int lockfile_create_set_tmplock(const char *lockfile, volatile char **tmplock, + int retries, int flags, struct lockargs_s_ *); + #ifdef __cplusplus } #endif |