{
char *s = talloc_strdup(mem_ctx, "");
char *o = s;
- int i;
+ size_t i;
const char *t_name = NULL;
bool option_section = false;
const char *target_hostname = NULL;
enum dcerpc_transport_t dcerpc_transport_by_endpoint_protocol(int prot)
{
- int i;
+ size_t i;
/* Find a transport that has 'prot' as 4th protocol */
for (i=0;i<ARRAY_SIZE(transports);i++) {
_PUBLIC_ enum dcerpc_transport_t dcerpc_transport_by_tower(const struct epm_tower *tower)
{
- int i;
+ size_t i;
/* Find a transport that matches this tower */
for (i=0;i<ARRAY_SIZE(transports);i++) {
_PUBLIC_ const char *derpc_transport_string_by_transport(enum dcerpc_transport_t t)
{
- int i;
+ size_t i;
for (i=0; i<ARRAY_SIZE(transports); i++) {
if (t == transports[i].transport) {
struct epm_tower *tower)
{
const enum epm_protocol *protseq = NULL;
- int num_protocols = -1, i;
+ size_t i, num_protocols;
struct ndr_syntax_id abstract_syntax;
NTSTATUS status;
}
}
- if (num_protocols == -1) {
+ if (i == ARRAY_SIZE(transports)) {
DEBUG(0, ("Unable to find transport with id '%d'\n", binding->transport));
return NT_STATUS_UNSUCCESSFUL;
}