Skip to content

Commit

Permalink
Update HTTP code to use 'modern' constant names.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Nov 21, 2024
1 parent 924b66b commit 8d1c067
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions htmldoc/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
* the file "COPYING".
*/

/*
* Include necessary headers.
*/

#include "file.h"
#include <cups/http.h>
#include "progress.h"
Expand Down Expand Up @@ -525,10 +521,10 @@ file_find_check(const char *filename) /* I - File or URL */

if (!httpGet(http, connpath))
{
while ((status = httpUpdate(http)) == HTTP_CONTINUE);
while ((status = httpUpdate(http)) == HTTP_STATUS_CONTINUE);
}
else
status = HTTP_ERROR;
status = HTTP_STATUS_ERROR;

if (status >= HTTP_STATUS_MULTIPLE_CHOICES && status < HTTP_STATUS_BAD_REQUEST)
{
Expand All @@ -549,7 +545,7 @@ file_find_check(const char *filename) /* I - File or URL */
}
}

if (status != HTTP_OK)
if (status != HTTP_STATUS_OK)
{
progress_hide();
progress_error((HDerror)status, "%s (%s)", httpStatus(status), filename);
Expand Down

0 comments on commit 8d1c067

Please sign in to comment.