-int forward_request(connection_t *from)
-{
- int request;
- cp();
-
- cp();
-
- if(debug_level >= DEBUG_PROTOCOL) {
- sscanf(from->buffer, "%d", &request);
- if(debug_level >= DEBUG_META)
- logger(DEBUG_ALWAYS, LOG_DEBUG, _("Forwarding %s from %s (%s): %s"),
- request_name[request], from->name, from->hostname,
- from->buffer);
+void forward_request(connection_t *from, char *request) {
+ ifdebug(PROTOCOL) {
+ ifdebug(META)
+ logger(LOG_DEBUG, "Forwarding %s from %s (%s): %s",
+ request_name[atoi(request)], from->name, from->hostname, request);