As option numbers can be up to 16 bit, the function coap_register_option() for making new options known to libcoap must also take at least 16 bit numbers. The data type for argument type therefore has been changed to uint16_t.