summaryrefslogtreecommitdiffstats
path: root/source/lib/xfile.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-03 23:34:24 +0000
committerJeremy Allison <jra@samba.org>2001-11-03 23:34:24 +0000
commitee5e7ca547eff016818ba5c43b8ea0c9fa69b808 (patch)
tree2f375961e5581aeaf0e57e0e9a9ec8125cbcbbe9 /source/lib/xfile.c
parent3bfb828cf70489165b46281bf03ea7074d3ba07d (diff)
downloadsamba-ee5e7ca547eff016818ba5c43b8ea0c9fa69b808.tar.gz
samba-ee5e7ca547eff016818ba5c43b8ea0c9fa69b808.tar.xz
samba-ee5e7ca547eff016818ba5c43b8ea0c9fa69b808.zip
Added NT_USER_TOKEN into server_info to fix extra groups problem.
Got "medieval on our ass" about const warnings (as many as I could :-). Jeremy.
Diffstat (limited to 'source/lib/xfile.c')
-rw-r--r--source/lib/xfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/xfile.c b/source/lib/xfile.c
index 6e21aeca58f..7fc519e451a 100644
--- a/source/lib/xfile.c
+++ b/source/lib/xfile.c
@@ -163,7 +163,7 @@ int x_fwrite(const void *p, size_t size, size_t nmemb, XFILE *f)
continue;
}
- memcpy(f->buf + f->bufused, total+(char *)p, n);
+ memcpy(f->buf + f->bufused, total+(const char *)p, n);
f->bufused += n;
total += n;
}
@@ -173,7 +173,7 @@ int x_fwrite(const void *p, size_t size, size_t nmemb, XFILE *f)
if (f->buftype == X_IOLBF && f->bufused) {
int i;
for (i=size-1; i>=0; i--) {
- if (*(i+(char *)p) == '\n') {
+ if (*(i+(const char *)p) == '\n') {
x_fflush(f);
break;
}