Skip to content

Commit

Permalink
VS2022 doesn't like ERROR.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfclere committed Jun 12, 2023
1 parent be80627 commit 335f57b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/dav/main/ms_wdv.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static dav_error *mswdv_combined_lock(request_rec *r)
/* action */
const char *failmsg = NULL;
int http_error = HTTP_BAD_REQUEST;
enum { ERROR, LOCK, UNLOCK, REFRESH, PASS } action = ERROR;
enum { LERROR, LOCK, UNLOCK, REFRESH, PASS } action = LERROR;

lock_token_hdr = apr_table_get(r->headers_in, "Lock-Token");
lock_timeout_hdr = apr_table_get(r->headers_in, "X-MSDAVEXTLockTimeout");
Expand Down Expand Up @@ -413,7 +413,7 @@ static dav_error *mswdv_combined_lock(request_rec *r)
action == LOCK ? "LOCK" : "",
action == UNLOCK ? "UNLOCK" : "",
action == REFRESH ? "REFRESH" : "",
action == ERROR ? "ERROR" : "",
action == LERROR ? "ERROR" : "",
action == PASS ? "PASS" : "");

if (failmsg) {
Expand Down Expand Up @@ -471,7 +471,7 @@ static dav_error *mswdv_combined_lock(request_rec *r)
break;
}

case ERROR: /* FALLTHROUGH */
case LERROR: /* FALLTHROUGH */
default:
/* NOTREACHED */
err = dav_new_error(r->pool, HTTP_INTERNAL_SERVER_ERROR, 0, 0,
Expand Down

0 comments on commit 335f57b

Please sign in to comment.