summaryrefslogtreecommitdiff
path: root/source3/srvparse.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-19 17:01:06 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-19 17:01:06 +0000
commit7aa5495c18f21eaa1397e8b0751b71810ccf38b7 (patch)
tree73508a1c280f82711676b6254f815cd1a5ffae9b /source3/srvparse.c
parent54ffd7f5c9251382874d9c47611d5c666f782f6b (diff)
downloadsamba-7aa5495c18f21eaa1397e8b0751b71810ccf38b7.tar.gz
samba-7aa5495c18f21eaa1397e8b0751b71810ccf38b7.tar.bz2
samba-7aa5495c18f21eaa1397e8b0751b71810ccf38b7.zip
creating NetShareEnum parsing / reply creation. compiles, but untested.
(This used to be commit 0a191ee5047b2c81c7adb0554c39ec43d8690230)
Diffstat (limited to 'source3/srvparse.c')
-rw-r--r--source3/srvparse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/srvparse.c b/source3/srvparse.c
index c06ff40ceb..a94efff138 100644
--- a/source3/srvparse.c
+++ b/source3/srvparse.c
@@ -79,18 +79,18 @@ char* srv_io_share_1_ctr(BOOL io, SHARE_INFO_1_CTR *ctr, char *q, char *base, in
if (ctr->ptr_share_info != 0)
{
int i;
- int max_entries = ctr->num_entries_read;
- if (max_entries > MAX_SHARE_ENTRIES)
+ int num_entries = ctr->num_entries_read;
+ if (num_entries > MAX_SHARE_ENTRIES)
{
- max_entries = MAX_SHARE_ENTRIES; /* report this! */
+ num_entries = MAX_SHARE_ENTRIES; /* report this! */
}
- for (i = 0; i < max_entries; i++)
+ for (i = 0; i < num_entries; i++)
{
q = srv_io_share_info1(io, &(ctr->info_1[i]), q, base, align, depth);
}
- for (i = 0; i < max_entries; i++)
+ for (i = 0; i < num_entries; i++)
{
q = srv_io_share_info1_str(io, &(ctr->info_1_str[i]), q, base, align, depth);
}