From: Volker Lendecke Date: Mon, 6 May 2019 14:19:22 +0000 (+0200) Subject: g_lock: Apply some const X-Git-Tag: tdb-1.4.1~150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8992cf4aec4750afa9b6a632d26fabf333801525;p=thirdparty%2Fsamba.git g_lock: Apply some const Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index d8298b6ee33..951956fd094 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -90,7 +90,8 @@ static bool g_lock_parse(uint8_t *buf, size_t buflen, struct g_lock *lck) return true; } -static void g_lock_get_rec(struct g_lock *lck, size_t i, +static void g_lock_get_rec(const struct g_lock *lck, + size_t i, struct g_lock_rec *rec) { if (i >= lck->num_recs) {