Skip to content

Commit 8d1c067

Browse files
committed
Update HTTP code to use 'modern' constant names.
1 parent 924b66b commit 8d1c067

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

htmldoc/file.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
* the file "COPYING".
99
*/
1010

11-
/*
12-
* Include necessary headers.
13-
*/
14-
1511
#include "file.h"
1612
#include <cups/http.h>
1713
#include "progress.h"
@@ -525,10 +521,10 @@ file_find_check(const char *filename) /* I - File or URL */
525521

526522
if (!httpGet(http, connpath))
527523
{
528-
while ((status = httpUpdate(http)) == HTTP_CONTINUE);
524+
while ((status = httpUpdate(http)) == HTTP_STATUS_CONTINUE);
529525
}
530526
else
531-
status = HTTP_ERROR;
527+
status = HTTP_STATUS_ERROR;
532528

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

552-
if (status != HTTP_OK)
548+
if (status != HTTP_STATUS_OK)
553549
{
554550
progress_hide();
555551
progress_error((HDerror)status, "%s (%s)", httpStatus(status), filename);

0 commit comments

Comments
 (0)