summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
413ac0e)
getopt_long returns an int, not a char, and on some platforms we hit
issues with the sign extension as a result. Do it properly.
Fixes #2
struct ma_config config;
int option_index = 0;
int macs = 0;
struct ma_config config;
int option_index = 0;
int macs = 0;
bzero(&config, sizeof(config));
config.mqtt_port = MQTT_PORT;
bzero(&config, sizeof(config));
config.mqtt_port = MQTT_PORT;