httpd: don't pass uninitialized page to httpd_client_check_queue()

The httpd_client_check_queue() callback function does not use its
"user_data" argument.  Don't pass any, and fix the gcc warning.
This commit is contained in:
Max Kellermann 2009-04-01 22:45:21 +02:00
parent 5242305a90
commit cd6182862a
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ httpd_output_encode_and_play(struct httpd_output *httpd,
return false;
g_mutex_lock(httpd->mutex);
g_list_foreach(httpd->clients, httpd_client_check_queue, page);
g_list_foreach(httpd->clients, httpd_client_check_queue, NULL);
g_mutex_unlock(httpd->mutex);
while ((page = httpd_output_read_page(httpd)) != NULL) {