summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-03-10 21:53:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-03-11 10:05:39 +0100
commit69b5f0b6579c6574a8fe68ab2a64208ec767db55 (patch)
tree1fafea3a72e113d0a915a1f79a2f4b3406d695a0 /solenv
parent4015b22dbc10bc246a3ef704d8b75e8f8cdca519 (diff)
loplugin:constparams
Change-Id: I5f184f93dbdb414514855c85c9dc1624e7ec8636 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131337 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/lockfile/lockfile.c4
-rw-r--r--solenv/lockfile/lockfile.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/solenv/lockfile/lockfile.c b/solenv/lockfile/lockfile.c
index a902484b9484..52be40b0fb56 100644
--- a/solenv/lockfile/lockfile.c
+++ b/solenv/lockfile/lockfile.c
@@ -224,7 +224,7 @@ static int lockfilename(const char *lockfile, char *tmplock, size_t tmplocksz)
static int lockfile_create_save_tmplock(const char *lockfile,
char *tmplock, size_t tmplocksz,
volatile char **xtmplock,
- int retries, int flags, struct lockargs_s_ *args)
+ int retries, int flags, const struct lockargs_s_ *args)
{
struct stat st, st1;
char pidbuf[40];
@@ -381,7 +381,7 @@ static int lockfile_create_save_tmplock(const char *lockfile,
#ifdef LIB
static
#endif
-int lockfile_create_set_tmplock(const char *lockfile, volatile char **xtmplock, int retries, int flags, struct lockargs_s_ *args)
+int lockfile_create_set_tmplock(const char *lockfile, volatile char **xtmplock, int retries, int flags, const struct lockargs_s_ *args)
{
char *tmplock;
int r, e;
diff --git a/solenv/lockfile/lockfile.h b/solenv/lockfile/lockfile.h
index 945db9cb9263..f2f72022f49e 100644
--- a/solenv/lockfile/lockfile.h
+++ b/solenv/lockfile/lockfile.h
@@ -63,7 +63,7 @@ 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_ *);
+ int retries, int flags, const struct lockargs_s_ *);
#ifdef __cplusplus
}