Use size_t when iterating over port and ssl vars in mg_get_ports

* Parameter passed in indicating size of port and ssl arrays passed
  in is size_t - an unsigned var, make sure to use the same type
  for the iteration variable.