1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r6501: correct deprecated lvalue casts in testsuite/libsmbclient

(This used to be commit 6d22c3c343)
This commit is contained in:
Derrell Lipman 2005-04-27 14:05:02 +00:00 committed by Gerald (Jerry) Carter
parent 65d672f019
commit 7a8ee79925
5 changed files with 13 additions and 8 deletions

View File

@ -16,6 +16,7 @@ int main(int argc, char * argv[])
char ctime[32];
char atime[32];
char * pSmbPath = NULL;
struct tm tm;
struct stat st;
struct utimbuf utimbuf;
@ -53,7 +54,7 @@ int main(int argc, char * argv[])
st.st_ctime, ctime_r(&st.st_ctime, ctime),
st.st_atime, ctime_r(&st.st_atime, atime));
utimbuf.actime = st.st_atime - 120; /* unchangable. this one wont change */
utimbuf.actime = st.st_atime - 120; /* unchangable (wont change) */
utimbuf.modtime = st.st_mtime - 120; /* this one should succeed */
if (smbc_utime(pSmbPath, &utimbuf) < 0)
{

View File

@ -135,8 +135,8 @@ int main(int argc, char** argv)
}
(char *)dirptr += direntsize;
(char *)diramount -= direntsize;
dirptr = (struct smbc_dirent *) ((char *) dirptr + direntsize);
diramount -= direntsize;
j++;
}

View File

@ -101,7 +101,7 @@ int main(int argc, char** argv)
break;
}
(char*)dirsize += dirptr->dirlen;
dirsize += dirptr->dirlen;
}

View File

@ -102,7 +102,7 @@ int main(int argc, char** argv)
break;
}
(char*)dirsize += dirptr->dirlen;
dirsize += dirptr->dirlen;
}
@ -112,7 +112,9 @@ int main(int argc, char** argv)
if ( offset != dirsize )
{
/* printf("offset: %i dirsize: %i\n",offset,dirsize); */
/*
printf("offset: %i dirsize: %i\n", offset, dirsize);
*/
err = 1;
}

View File

@ -102,7 +102,7 @@ int main(int argc, char** argv)
break;
}
(char*)dirsize += dirptr->dirlen;
dirsize += dirptr->dirlen;
}
@ -110,7 +110,9 @@ int main(int argc, char** argv)
if ( offset != dirsize )
{
/* printf("offset: %i dirsize: %i\n",offset,dirsize); */
/*
printf("offset: %i dirsize: %i\n", offset, dirsize);
*/
err = 1;
}