Index: doc/chapters/responseheaders.inc =================================================================== --- doc/chapters/responseheaders.inc (revision 14385) +++ doc/chapters/responseheaders.inc (working copy) @@ -113,7 +113,7 @@ } response = - MHD_create_response_from_fd_at_offset (fd, sbuf.st_size, 0); + MHD_create_response_from_fd_at_offset (sbuf.st_size, fd, 0); MHD_add_response_header (response, "Content-Type", MIMETYPE); ret = MHD_queue_response (connection, MHD_HTTP_OK, response); MHD_destroy_response (response); Index: doc/examples/responseheaders.c =================================================================== --- doc/examples/responseheaders.c (revision 14385) +++ doc/examples/responseheaders.c (working copy) @@ -47,7 +47,7 @@ return MHD_NO; } response = - MHD_create_response_from_fd_at_offset (fd, sbuf.st_size, 0); + MHD_create_response_from_fd_at_offset (sbuf.st_size, fd, 0); MHD_add_response_header (response, "Content-Type", MIMETYPE); ret = MHD_queue_response (connection, MHD_HTTP_OK, response); MHD_destroy_response (response);