struct sockaddr_in sockaddr;
char hostname[100];
const char *port_str;
- int tmp,port;
+ unsigned tmp;
+ int port;
if (STATE_ENVIRONMENT (sd) != OPERATING_ENVIRONMENT
|| sockser_addr == NULL)
hw_port_encode (struct hw *me,
int port_number,
char *buf,
- int sizeof_buf,
+ unsigned sizeof_buf,
port_direction direction)
{
const struct hw_port_descriptor *ports = NULL;
(struct hw *me,
int port_number,
char *buf,
- int sizeof_buf,
+ unsigned sizeof_buf,
port_direction direction);
* sizeof (unsigned_cell));
unsigned_cell *cells = hw_zalloc (me, sizeof_cells);
unsigned_cell *cell;
- int i;
+ unsigned i;
/* copy the property elements over */
cell = cells;
* sizeof (unsigned_cell));
unsigned_cell *cells = hw_zalloc (me, sizeof_cells);
unsigned_cell *cell;
- int i;
+ unsigned i;
/* copy the property elements over */
cell = cells;
const string_property_spec *strings,
unsigned nr_strings)
{
- int sizeof_array;
- int string_nr;
+ unsigned sizeof_array;
+ unsigned string_nr;
char *array;
char *chp;
if (nr_strings == 0)
ASSERT (((char*)node->array)[node->sizeof_array - 1] == '\0');
{
const char *chp = node->array;
- int nr_entries = 0;
+ unsigned nr_entries = 0;
/* count the number of strings, keeping an eye out for the one
we're looking for */
*string = chp;
{
struct hw *aliases = hw_tree_find_device (current, "/aliases");
char alias[32];
- int len = 0;
+ unsigned len = 0;
while (device_specifier[len] != '\0'
&& device_specifier[len] != '/'
&& device_specifier[len] != ':'
/* count the number of entries */
-static int
+static unsigned
count_entries (struct hw *current,
const char *property_name,
const char *property_value,
- int modulo)
+ unsigned modulo)
{
const char *chp = property_value;
- int nr_entries = 0;
+ unsigned nr_entries = 0;
while (*chp != '\0')
{
nr_entries += 1;
const char *property_name,
const char *property_value)
{
- int nr_regs;
- int reg_nr;
+ unsigned nr_regs;
+ unsigned reg_nr;
reg_property_spec *regs;
const char *chp;
const char *property_name,
const char *property_value)
{
- int nr_ranges;
- int range_nr;
+ unsigned nr_ranges;
+ unsigned range_nr;
range_property_spec *ranges;
const char *chp;
{
char **strings;
const char *chp;
- int nr_strings;
- int approx_nr_strings;
+ unsigned nr_strings;
+ unsigned approx_nr_strings;
/* get an estimate as to the number of strings by counting double
quotes */
if ((property->sizeof_array % sizeof (signed_cell)) == 0)
{
unsigned_cell *w = (unsigned_cell*) property->array;
- int cell_nr;
+ unsigned cell_nr;
for (cell_nr = 0;
cell_nr < (property->sizeof_array / sizeof (unsigned_cell));
cell_nr++)
#if (WITH_HW)
if (mapping->device != NULL)
{
- int nr_bytes = len - count;
+ unsigned nr_bytes = len - count;
if (raddr + nr_bytes - 1> mapping->bound)
nr_bytes = mapping->bound - raddr + 1;
/* If the access was initiated by a cpu, pass it down so errors can
#if (WITH_HW)
if (mapping->device != NULL)
{
- int nr_bytes = len - count;
+ unsigned nr_bytes = len - count;
if (raddr + nr_bytes - 1 > mapping->bound)
nr_bytes = mapping->bound - raddr + 1;
/* If the access was initiated by a cpu, pass it down so errors can