Make g_conf.osd_max_notify_timeout a uint32_t. Squashes an annoying
compiler warning and avoids the awkward issue of users specifying
negative timeouts.
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
exit(1);
}
break;
+ case OPT_U32:
+ OPT_READ_TYPE(ret, section, key, uint32_t, out, def);
+ break;
default:
ret = 0;
break;
bool osd_use_stale_snap;
- int osd_max_notify_timeout;
+ uint32_t osd_max_notify_timeout;
// filestore
bool filestore;
typedef enum {
OPT_NONE, OPT_INT, OPT_LONGLONG, OPT_STR, OPT_DOUBLE, OPT_FLOAT, OPT_BOOL,
- OPT_ADDR
+ OPT_ADDR, OPT_U32
} opt_type_t;
/**