Quoting r. Eitan Zahavi <[EMAIL PROTECTED]>: > @@ -112,7 +101,7 @@ static int partition_create(unsigned lin > > if (id) { > char *end; > - pkey = strtoul(id, &end, 0); > + pkey = (uint16_t)strtoul(id, &end, 0); > if (end == id || *end) > return -1; > } else
would it make sense to range-check the value before casting it? -- MST _______________________________________________ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general