static const char *level_name(enum smb_search_level level,
enum smb_search_data_level data_level)
{
- int i;
+ size_t i;
for (i=0;i<ARRAY_SIZE(levels);i++) {
if (level == levels[i].level &&
data_level == levels[i].data_level) {
static const char *extract_name(void *data, enum smb_search_level level,
enum smb_search_data_level data_level)
{
- int i;
+ size_t i;
for (i=0;i<ARRAY_SIZE(levels);i++) {
if (level == levels[i].level &&
data_level == levels[i].data_level) {
static uint32_t extract_resume_key(void *data, enum smb_search_level level,
enum smb_search_data_level data_level)
{
- int i;
+ size_t i;
for (i=0;i<ARRAY_SIZE(levels);i++) {
if (level == levels[i].level &&
data_level == levels[i].data_level) {
/* find a level in the table by name */
static union smb_search_data *find(const char *name)
{
- int i;
+ size_t i;
for (i=0;i<ARRAY_SIZE(levels);i++) {
if (NT_STATUS_IS_OK(levels[i].status) &&
strcmp(levels[i].name, name) == 0) {
const char *fname = "torture_search.txt";
const char *fname2 = "torture_search-NOTEXIST.txt";
NTSTATUS status;
- int i;
+ size_t i;
union smb_fileinfo all_info, alt_info, name_info, internal_info;
bool all_info_supported, alt_info_supported, name_info_supported,
internal_info_supported;
struct smbcli_state *cli)
{
const int num_files = 700;
- int i, fnum, t;
+ int i, fnum;
+ size_t t;
char *fname;
bool ret = true;
NTSTATUS status;
struct srvsvc_NetShareGetInfo r;
union srvsvc_NetShareInfo info;
uint32_t levels[] = { 0, 1, 2, 501, 502, 1004, 1005, 1006, 1007, 1501 };
- int i;
+ size_t i;
bool ret = true;
struct dcerpc_binding_handle *b = p->binding_handle;
struct srvsvc_NetShareCtr1007 c1007;
uint32_t totalentries = 0;
uint32_t levels[] = { 0, 1, 2, 501, 502, 1004, 1005, 1006, 1007 };
- int i;
+ size_t i;
bool ret = true;
struct dcerpc_binding_handle *b = p->binding_handle;
}
{
- int i;
+ size_t i;
int levels[] = { 2,3,5,6 };
for (i=0; i<ARRAY_SIZE(levels); i++) {
struct srvsvc_NetShareCtr1 c1_in;
struct srvsvc_NetShareCtr1 *c1;
uint32_t totalentries = 0;
- int i;
+ uint32_t i;
struct dcerpc_binding_handle *b = p->binding_handle;
ZERO_STRUCT(c1_in);