summaryrefslogtreecommitdiff
path: root/src/mod_maxminddb.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-06-16 17:33:59 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-08-27 02:16:54 -0400
commite6f286ef5f4368b8ef360c0941a928ef26ea3713 (patch)
tree5d2802f508053ccad7ebda5ed4fdbc59b77cd219 /src/mod_maxminddb.c
parent38a9f0ebdd581bb53dcda8c4e71dffa45b8d898b (diff)
downloadlighttpd-git-e6f286ef5f4368b8ef360c0941a928ef26ea3713.tar.gz
[multiple] reduce use of BUFFER_INTLEN_PTR
reduce use of BUFFER_INTLEN_PTR where b->ptr known not to be NULL
Diffstat (limited to 'src/mod_maxminddb.c')
-rw-r--r--src/mod_maxminddb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mod_maxminddb.c b/src/mod_maxminddb.c
index 8731a0aa..0e5d0959 100644
--- a/src/mod_maxminddb.c
+++ b/src/mod_maxminddb.c
@@ -156,8 +156,8 @@ mod_maxminddb_open_db (server *srv, const buffer *db_name)
|| 0 != memcmp(db_name->ptr+db_name->used-sizeof(".mmdb"),
CONST_STR_LEN(".mmdb"))) {
log_error(srv->errh, __FILE__, __LINE__,
- "GeoIP database is of unsupported type %.*s)",
- BUFFER_INTLEN_PTR(db_name));
+ "GeoIP database is of unsupported type %s)",
+ db_name->ptr);
return NULL;
}
@@ -168,12 +168,12 @@ mod_maxminddb_open_db (server *srv, const buffer *db_name)
if (MMDB_IO_ERROR == rc)
log_perror(srv->errh, __FILE__, __LINE__,
- "failed to open GeoIP2 database (%.*s)",
- BUFFER_INTLEN_PTR(db_name));
+ "failed to open GeoIP2 database (%s)",
+ db_name->ptr);
else
log_error(srv->errh, __FILE__, __LINE__,
- "failed to open GeoIP2 database (%.*s): %s",
- BUFFER_INTLEN_PTR(db_name), MMDB_strerror(rc));
+ "failed to open GeoIP2 database (%s): %s",
+ db_name->ptr, MMDB_strerror(rc));
free(mmdb);
return NULL;
}