mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
- fixed cast warnings
- ignore *.po32 files
(This used to be commit 469474803d
)
This commit is contained in:
@ -1 +1,3 @@
|
|||||||
*.po
|
*.po
|
||||||
|
*.po32
|
||||||
|
|
||||||
|
@ -2334,21 +2334,23 @@ int name_extract(char *buf,int ofs,char *name)
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
return the total storage length of a mangled name
|
return the total storage length of a mangled name
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
int name_len(unsigned char *s)
|
int name_len(char *s1)
|
||||||
{
|
{
|
||||||
int len;
|
/* NOTE: this argument _must_ be unsigned */
|
||||||
|
unsigned char *s = (unsigned char *)s1;
|
||||||
|
int len;
|
||||||
|
|
||||||
/* If the two high bits of the byte are set, return 2. */
|
/* If the two high bits of the byte are set, return 2. */
|
||||||
if (0xC0 == (*s & 0xC0))
|
if (0xC0 == (*s & 0xC0))
|
||||||
return(2);
|
return(2);
|
||||||
|
|
||||||
/* Add up the length bytes. */
|
/* Add up the length bytes. */
|
||||||
for (len = 1; (*s); s += (*s) + 1) {
|
for (len = 1; (*s); s += (*s) + 1) {
|
||||||
len += *s + 1;
|
len += *s + 1;
|
||||||
SMB_ASSERT(len < 80);
|
SMB_ASSERT(len < 80);
|
||||||
}
|
}
|
||||||
|
|
||||||
return(len);
|
return(len);
|
||||||
} /* name_len */
|
} /* name_len */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Reference in New Issue
Block a user