diff options
author | des <des@FreeBSD.org> | 2002-05-08 15:41:15 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-05-08 15:41:15 +0000 |
commit | b1c4fde84af2a34481392012f99682efde811482 (patch) | |
tree | 551f93e99286878b72600be71074d8aa9462d570 /usr.sbin/ypserv/yp_dblookup.c | |
parent | 0e558b0a7ad81a51fbc32bf83949e33c5d8be066 (diff) | |
download | FreeBSD-src-b1c4fde84af2a34481392012f99682efde811482.zip FreeBSD-src-b1c4fde84af2a34481392012f99682efde811482.tar.gz |
Fix a boatload of format errors and constness violations.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'usr.sbin/ypserv/yp_dblookup.c')
-rw-r--r-- | usr.sbin/ypserv/yp_dblookup.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/ypserv/yp_dblookup.c b/usr.sbin/ypserv/yp_dblookup.c index d0a3b1d..1c68626 100644 --- a/usr.sbin/ypserv/yp_dblookup.c +++ b/usr.sbin/ypserv/yp_dblookup.c @@ -468,7 +468,7 @@ yp_get_record(const char *domain, const char *map, if (ypdb_debug) yp_error("looking up key [%.*s]", - key->size, key->data); + (int)key->size, (char *)key->data); /* * Avoid passing back magic "YP_*" entries unless @@ -498,7 +498,8 @@ yp_get_record(const char *domain, const char *map, if (ypdb_debug) yp_error("result of lookup: key: [%.*s] data: [%.*s]", - key->size, key->data, data->size, data->data); + (int)key->size, (char *)key->data, + (int)data->size, (char *)data->data); #ifdef DB_CACHE if (TAILQ_FIRST(&qhead)->dbptr->size) { @@ -550,7 +551,8 @@ yp_first_record(const DB *dbp, DBT *key, DBT *data, int allow) if (ypdb_debug) yp_error("result of lookup: key: [%.*s] data: [%.*s]", - key->size, key->data, data->size, data->data); + (int)key->size, (char *)key->data, + (int)data->size, (char *)data->data); #ifdef DB_CACHE if (TAILQ_FIRST(&qhead)->dbptr->size) { @@ -591,7 +593,7 @@ yp_next_record(const DB *dbp, DBT *key, DBT *data, int all, int allow) if (ypdb_debug) yp_error("retrieving next key, previous was: [%.*s]", - key->size, key->data); + (int)key->size, (char *)key->data); if (!all) { #ifdef DB_CACHE @@ -631,7 +633,8 @@ yp_next_record(const DB *dbp, DBT *key, DBT *data, int all, int allow) if (ypdb_debug) yp_error("result of lookup: key: [%.*s] data: [%.*s]", - key->size, key->data, data->size, data->data); + (int)key->size, (char *)key->data, + (int)data->size, (char *)data->data); #ifdef DB_CACHE if (TAILQ_FIRST(&qhead)->dbptr->size) { |