waffle

user and group backend daemon
git clone git://git.2f30.org/waffle
Log | Files | Refs | LICENSE

commit 22f8a94ee7ee5e0e09f69b4d228b7b6c92a61b79
parent 9e6de8d7ff57a66aad88d248571e1b32f5f1e193
Author: sin <sin@2f30.org>
Date:   Sat,  7 Mar 2015 18:22:35 +0000

Rename lengths -> grlens

Diffstat:
Mreq.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/req.c b/req.c @@ -102,7 +102,7 @@ replygr(int clifd, struct group *gr) { struct nscdgrp header; char *buf; - int32_t *lengths; + int32_t *grlens; size_t memsize = 0, i, len, offset; ssize_t n; @@ -135,9 +135,9 @@ replygr(int clifd, struct group *gr) memcpy(buf, &header, sizeof(header)); offset = sizeof(header); - lengths = (int32_t *)&buf[offset]; + grlens = (int32_t *)&buf[offset]; for (i = 0; i < header.memcnt; i++) - lengths[i] = strlen(gr->gr_mem[i]) + 1; + grlens[i] = strlen(gr->gr_mem[i]) + 1; offset += header.memcnt * 4; memcpy(buf + offset, gr->gr_name, header.namelen); @@ -149,7 +149,7 @@ replygr(int clifd, struct group *gr) for (i = 0; i < header.memcnt; i++) { memcpy(buf + offset, gr->gr_mem[i], strlen(gr->gr_mem[i]) + 1); - offset += lengths[i]; + offset += grlens[i]; } }