diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-11-12 06:12:19 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-11-12 06:12:19 +0000 |
commit | 713864dd0322ae2ae2d83e333d85be35a7eed4ec (patch) | |
tree | 9d40396028cf5b42e19c75592b484f3f7e5824a6 /source/include/smb.h | |
parent | 45131501f23ce1eec2f23fe2c1060cd5a2736ec9 (diff) | |
download | samba-713864dd0322ae2ae2d83e333d85be35a7eed4ec.tar.gz samba-713864dd0322ae2ae2d83e333d85be35a7eed4ec.tar.xz samba-713864dd0322ae2ae2d83e333d85be35a7eed4ec.zip |
largely rewrote smbpasswd so that the code is understandable. This
should allow us to call a function in swat rather than piping to
smbpasswd.
while doing this I also fixed quite a few "const char *" versus "char *" issues
that cropped up while using const to track down bugs in the code. This
led to changes in several generic functions.
The smbpasswd changes should be correct but they have not been
extensively tested. At least if I have introduced bugs then we should
be able to fix them more easily than before.
Diffstat (limited to 'source/include/smb.h')
-rw-r--r-- | source/include/smb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/smb.h b/source/include/smb.h index db7b251d65e..47a8869a48f 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -41,7 +41,7 @@ #define IS_BITS_SET_SOME(var,bit) (((var)&(bit))!=0) #define IS_BITS_CLR_ALL(var,bit) (((var)&(~(bit)))==0) -#define PTR_DIFF(p1,p2) ((ptrdiff_t)(((char *)(p1)) - (char *)(p2))) +#define PTR_DIFF(p1,p2) ((ptrdiff_t)(((const char *)(p1)) - (const char *)(p2))) typedef int BOOL; |