diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-08 19:32:05 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-08 19:32:05 +0000 |
commit | 21d1d4a2e2704ca8815b9bccc91fe9b0d4aa7149 (patch) | |
tree | 7fc797cdbae95d08e179a82c39e99b3746f5558b /source3/lib | |
parent | 6fce41df88708ad67ac3c709da211b04ef4561b6 (diff) | |
download | samba-21d1d4a2e2704ca8815b9bccc91fe9b0d4aa7149.tar.gz samba-21d1d4a2e2704ca8815b9bccc91fe9b0d4aa7149.tar.bz2 samba-21d1d4a2e2704ca8815b9bccc91fe9b0d4aa7149.zip |
const feeding frenzy
(This used to be commit 6d27c5f32dab7607398ae907eadb1c27a416da0d)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 69f884cc8b..4e18cb93ba 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -2922,7 +2922,7 @@ char *align2(char *q, char *base) return q; } -void out_ascii(FILE *f, unsigned char *buf,int len) +void out_ascii(FILE *f, const unsigned char *buf,int len) { int i; for (i=0;i<len;i++) @@ -2931,9 +2931,9 @@ void out_ascii(FILE *f, unsigned char *buf,int len) } } -void out_struct(FILE *f,char *buf1,int len, int per_line) +void out_struct(FILE *f, const char *buf1,int len, int per_line) { - unsigned char *buf = (unsigned char *)buf1; + const unsigned char *buf = (unsigned char *)buf1; int i; if (len<=0) @@ -2958,9 +2958,9 @@ void out_struct(FILE *f,char *buf1,int len, int per_line) fprintf(f, "\n};\n"); } -void out_data(FILE *f,char *buf1,int len, int per_line) +void out_data(FILE *f, const char *buf1,int len, int per_line) { - unsigned char *buf = (unsigned char *)buf1; + const unsigned char *buf = (const unsigned char *)buf1; int i=0; if (len<=0) { |