Snippets for openldap 2.6.14 from Alpine armv7
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-armv7/main/openldap/openldap-2.6.14-r0.log.
-
memory.c:522:1: warning: function may return address of local variable [-Wreturn-local-addr] 522 | } | ^ -
result.c:291:43: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'suseconds_t' {aka 'long long int'} [-Wformat=] 291 | Debug3( LDAP_DEBUG_TRACE, "wait4msg ld %p msgid %d (timeout %ld usec)\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 292 | (void *)ld, msgid, (long)timeout->tv_sec * 1000000 + timeout->tv_usec ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | suseconds_t {aka long long int} -
os-ip.c:290:34: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 290 | Debug2(LDAP_DEBUG_TRACE, "ldap_int_poll: fd: %d tm: %ld\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 291 | s, tvp ? tvp->tv_sec : -1L ); | ~~~~~~~~~~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
os-ip.c:442:25: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 442 | "ldap_pvt_connect: fd: %d tm: %ld async: %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 443 | s, opt_tv ? tv.tv_sec : -1L, async); | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
os-local.c:167:17: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 167 | "ldap_connect_timeout: fd: %d tm: %ld async: %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 168 | s, opt_tv ? tv.tv_sec : -1L, async); | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
bind.c:432:42: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 432 | Debug( LDAP_DEBUG_TRACE, "fe_op_lastbind: " | ^~~~~~~~~~~~~~~~~~ 433 | "old pwdLastSuccess value=%s %lds ago\n", 434 | a->a_nvals[0].bv_val, bindtime == (time_t)-1 ? -1 : op->o_time - bindtime ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
modify.c:245:40: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 245 | Debug(asyncmeta_debug, "==> asyncmeta_back_modify[%s]: o_time:[%ld], current time: [%ld]\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 246 | op->o_log_prefix, op->o_time, current_time ); | ~~~~~~~~~~ | | | time_t {aka long long int} -
modify.c:245:40: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t' {aka 'long long int'} [-Wformat=] 245 | Debug(asyncmeta_debug, "==> asyncmeta_back_modify[%s]: o_time:[%ld], current time: [%ld]\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 246 | op->o_log_prefix, op->o_time, current_time ); | ~~~~~~~~~~~~ | | | time_t {aka long long int} -
config.c:1165:80: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 1165 | bv.bv_len = snprintf( c->cr_msg, sizeof(c->cr_msg), "%ld", | ~~^ | | | long int | %lld 1166 | mc->mc_network_timeout ); | ~~~~~~~~~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
extended.c:245:27: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 245 | strcpy( rs->sr_text, text ); | ~~^~~~~~~~~ -
extended.c:372:27: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 372 | strcpy( rs->sr_text, text ); | ~~^~~~~~~~~ -
modrdn.c:259:40: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 259 | Debug(asyncmeta_debug, "==> asyncmeta_back_modrdn[%s]: o_time:[%ld], current time: [%ld]\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 260 | op->o_log_prefix, op->o_time, current_time ); | ~~~~~~~~~~ | | | time_t {aka long long int} -
modrdn.c:259:40: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t' {aka 'long long int'} [-Wformat=] 259 | Debug(asyncmeta_debug, "==> asyncmeta_back_modrdn[%s]: o_time:[%ld], current time: [%ld]\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 260 | op->o_log_prefix, op->o_time, current_time ); | ~~~~~~~~~~~~ | | | time_t {aka long long int} -
compare.c:197:41: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 197 | Debug( asyncmeta_debug, "==> asyncmeta_back_compare[%s]: o_time:[%ld], current time: [%ld]\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 198 | op->o_log_prefix, op->o_time, current_time ); | ~~~~~~~~~~ | | | time_t {aka long long int} -
compare.c:197:41: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t' {aka 'long long int'} [-Wformat=] 197 | Debug( asyncmeta_debug, "==> asyncmeta_back_compare[%s]: o_time:[%ld], current time: [%ld]\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 198 | op->o_log_prefix, op->o_time, current_time ); | ~~~~~~~~~~~~ | | | time_t {aka long long int} -
add.c:332:50: warning: too many arguments for format [-Wformat-extra-args] 332 | Debug( LDAP_DEBUG_TRACE, " backsql_modify_internal(): " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dds.c:421:68: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 421 | bv.bv_len = snprintf( ttlbuf, sizeof( ttlbuf ), "%ld", ttl ); | ~~^ ~~~ | | | | | time_t {aka long long int} | long int | %lld -
dds.c:699:95: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 699 | bv_entryTtl.bv_len = snprintf( textbuf, sizeof( textbuf ), "%ld", entryTtl ); | ~~^ ~~~~~~~~ | | | | | time_t {aka long long int} | long int | %lld -
dds.c:921:60: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 921 | len = snprintf( ttlbuf, sizeof(ttlbuf), "%ld", ttl ); | ~~^ ~~~ | | | | | time_t {aka long long int} | long int | %lld -
dds.c:1181:80: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 1181 | ttlvalues[ 0 ].bv_len = snprintf( ttlbuf, sizeof( ttlbuf ), "%ld", ttl ); | ~~^ ~~~ | | | | | time_t {aka long long int} | long int | %lld -
dds.c:1209:41: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t' {aka 'long long int'} [-Wformat=] 1209 | "%s REFRESH dn=\"%s\" TTL=%ld\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1210 | op->o_log_prefix, op->o_req_ndn.bv_val, ttl ); | ~~~ | | | time_t {aka long long int} -
monitor.c:198:54: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 198 | bv.bv_len = snprintf( buf, sizeof( buf ), "%lu", mei.me_mapsize / mst.ms_psize ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
monitor.c:204:54: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 204 | bv.bv_len = snprintf( buf, sizeof( buf ), "%lu", mei.me_last_pgno+1 ); | ~~^ ~~~~~~~~~~~~~~~~~~ | | | | long unsigned int size_t {aka unsigned int} | %u -
monitor.c:238:62: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 238 | bv.bv_len = snprintf( buf, sizeof( buf ), "%lu", mst.ms_entries ); | ~~^ ~~~~~~~~~~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
monitor.c:246:62: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 246 | bv.bv_len = snprintf( buf, sizeof( buf ), "%lu", pages ); | ~~^ ~~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u -
bind.c:3009:56: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 3009 | len = snprintf( tbuf, sizeof(tbuf), "%ld", lc->lcb_create_time ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | | time_t {aka long long int} | long int | %lld -
bind.c:3016:56: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 3016 | len = snprintf( tbuf, sizeof(tbuf), "%ld", lc->lcb_time ); | ~~^ ~~~~~~~~~~~~ | | | | | time_t {aka long long int} | long int | %lld -
bind.c:3092:34: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 3092 | Debug( LDAP_DEBUG_TRACE, "ldap_back_conn_expire_time lc=%p expire=%ld\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3093 | lc, expiry ); | ~~~~~~ | | | time_t {aka long long int} -
bind.c:3219:25: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 3219 | "ldap_back_conn_prune: scheduled connection expiry timer to %ld sec\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3220 | li->li_conn_expire_task->interval.tv_sec ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
bind.c:3255:25: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 3255 | "ldap_back_conn_prune: scheduled connection expiry timer to %ld sec\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3256 | li->li_conn_expire_task->interval.tv_sec ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
delete.c:189:40: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 189 | Debug(asyncmeta_debug, "==> asyncmeta_back_delete[%s]: o_time:[%ld], current time: [%ld]\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 190 | op->o_log_prefix, op->o_time, current_time ); | ~~~~~~~~~~ | | | time_t {aka long long int} -
delete.c:189:40: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t' {aka 'long long int'} [-Wformat=] 189 | Debug(asyncmeta_debug, "==> asyncmeta_back_delete[%s]: o_time:[%ld], current time: [%ld]\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 190 | op->o_log_prefix, op->o_time, current_time ); | ~~~~~~~~~~~~ | | | time_t {aka long long int} -
add.c:255:40: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 255 | Debug(asyncmeta_debug, "==> asyncmeta_back_add[%s]: o_time:[%ld], current time: [%ld]\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 256 | op->o_log_prefix, op->o_time, current_time ); | ~~~~~~~~~~ | | | time_t {aka long long int} -
add.c:255:40: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t' {aka 'long long int'} [-Wformat=] 255 | Debug(asyncmeta_debug, "==> asyncmeta_back_add[%s]: o_time:[%ld], current time: [%ld]\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 256 | op->o_log_prefix, op->o_time, current_time ); | ~~~~~~~~~~~~ | | | time_t {aka long long int} -
pcache.c:2754:54: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 2754 | Debug( pcache_debug, "pc_bind_search: cache is stale, " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2755 | "reftime: %ld, current time: %ld\n", 2756 | pbi->bi_cq->bindref_time, op->o_time ); | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
pcache.c:2754:54: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 2754 | Debug( pcache_debug, "pc_bind_search: cache is stale, " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2755 | "reftime: %ld, current time: %ld\n", 2756 | pbi->bi_cq->bindref_time, op->o_time ); | ~~~~~~~~~~ | | | time_t {aka long long int} -
meta_result.c:1668:33: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 1668 | Debug( asyncmeta_debug, "asyncmeta_timeout_loop[%p] start at [%ld] \n", rtask, current_time ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ | | | time_t {aka long long int} -
meta_result.c:1670:41: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 1670 | Debug( asyncmeta_debug, "asyncmeta_timeout_loop[%p] database disabled, clearing connections [%ld] \n", rtask, current_time ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ | | | time_t {aka long long int} -
meta_result.c:1770:40: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t' {aka 'long long int'} [-Wformat=] 1770 | "asyncmeta_timeout_loop:Timeout op %s loop[%p], " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
meta_result.c:1770:40: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'time_t' {aka 'long long int'} [-Wformat=] 1770 | "asyncmeta_timeout_loop:Timeout op %s loop[%p], " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
meta_result.c:1834:33: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 1834 | Debug( asyncmeta_debug, "asyncmeta_timeout_loop[%p] stop at [%ld] \n", rtask, current_time ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ | | | time_t {aka long long int} -
pcache.c:3913:94: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'time_t' {aka 'long long int'} [-Wformat=] 3913 | bv.bv_len = snprintf( c->cr_msg, sizeof( c->cr_msg ), "%s %d %d %d %ld", | ~~^ | | | long int | %lld 3914 | cm->db.bd_info->bi_type, cm->max_entries, cm->numattrsets, 3915 | cm->num_entries_limit, cm->cc_period ); | ~~~~~~~~~~~~~ | | | time_t {aka long long int} -
pcache.c:3966:48: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 3966 | " %d %ld %ld %ld %ld", | ~~^ | | | long int | %lld 3967 | temp->attr_set_index, 3968 | temp->ttl, | ~~~~~~~~~ | | | time_t {aka long long int} -
pcache.c:3966:52: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t' {aka 'long long int'} [-Wformat=] 3966 | " %d %ld %ld %ld %ld", | ~~^ | | | long int | %lld -
pcache.c:3966:56: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'time_t' {aka 'long long int'} [-Wformat=] 3966 | " %d %ld %ld %ld %ld", | ~~^ | | | long int | %lld -
pcache.c:3966:60: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'time_t' {aka 'long long int'} [-Wformat=] 3966 | " %d %ld %ld %ld %ld", | ~~^ | | | long int | %lld -
pcache.c:3988:48: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 3988 | " %d %ld %s ", | ~~^ | | | long int | %lld 3989 | temp->attr_set_index, 3990 | temp->bindttr, | ~~~~~~~~~~~~~ | | | time_t {aka long long int} -
meta_result.c:254:39: warning: '%s' directive argument is null [-Wformat-overflow=] 254 | "%s meta_send_entry(\"%s\"): " "slap_bv2undef_ad(%s): %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
slapd-mtread.c:268:61: warning: '%s' directive argument is null [-Wformat-overflow=] 268 | snprintf(outstr, BUFSIZ, "MT Test Start: conns: %d (%s)", noconns, uri); | ^~ -
mqtt.c:48:32: warning: missing braces around initializer [-Wmissing-braces] 48 | static ConfigTable mqttcfg[] = { | ^ -
mqtt.c:48:32: warning: missing braces around initializer [-Wmissing-braces]
-
mqtt.c:188:47: warning: too many arguments for format [-Wformat-extra-args] 188 | Debug(LDAP_DEBUG_ANY, "mqtt_db_open: unable to find objectClass=\"%s\"\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mqtt.c:203:47: warning: too many arguments for format [-Wformat-extra-args] 203 | Debug(LDAP_DEBUG_ANY, "mqtt_db_config_notify: DN normalization failed for \"%s\": %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mqtt.c:226:33: warning: too many arguments for format [-Wformat-extra-args] 226 | Debug(LDAP_DEBUG_TRACE, "mqtt_send_notify: pub on topic '%s'\n", n->topic, 0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mqtt.c:236:33: warning: too many arguments for format [-Wformat-extra-args] 236 | Debug(LDAP_DEBUG_TRACE, "mqtt_on_connect: connected with status %d\n", rc, 0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mqtt.c:249:33: warning: too many arguments for format [-Wformat-extra-args] 249 | Debug(LDAP_DEBUG_TRACE, "mqtt_db_init: initialize overlay\n", 0, 0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mqtt.c:260:33: warning: too many arguments for format [-Wformat-extra-args] 260 | Debug(LDAP_DEBUG_TRACE, "mqtt_db_destroy: destroy overlay\n", 0, 0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mqtt.c:278:33: warning: too many arguments for format [-Wformat-extra-args] 278 | Debug(LDAP_DEBUG_TRACE, "mqtt_db_open, id='%s'\n", id, 0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
mqtt.c:297:33: warning: too many arguments for format [-Wformat-extra-args] 297 | Debug(LDAP_DEBUG_TRACE, "mqtt_db_close\n", 0, 0, 0); | ^~~~~~~~~~~~~~~~~