| | @@ -362,11 +362,11 @@ |
| 362 | 362 | /* |
| 363 | 363 | ** Do a redirect request to the URL given in the argument. |
| 364 | 364 | ** |
| 365 | 365 | ** The URL must be relative to the base of the fossil server. |
| 366 | 366 | */ |
| 367 | | -void cgi_redirect(const char *zURL){ |
| 367 | +NORETURN void cgi_redirect(const char *zURL){ |
| 368 | 368 | char *zLocation; |
| 369 | 369 | CGIDEBUG(("redirect to %s\n", zURL)); |
| 370 | 370 | if( strncmp(zURL,"http:",5)==0 || strncmp(zURL,"https:",6)==0 ){ |
| 371 | 371 | zLocation = mprintf("Location: %s\r\n", zURL); |
| 372 | 372 | }else if( *zURL=='/' ){ |
| | @@ -381,11 +381,11 @@ |
| 381 | 381 | cgi_set_status(302, "Moved Temporarily"); |
| 382 | 382 | free(zLocation); |
| 383 | 383 | cgi_reply(); |
| 384 | 384 | fossil_exit(0); |
| 385 | 385 | } |
| 386 | | -void cgi_redirectf(const char *zFormat, ...){ |
| 386 | +NORETURN void cgi_redirectf(const char *zFormat, ...){ |
| 387 | 387 | va_list ap; |
| 388 | 388 | va_start(ap, zFormat); |
| 389 | 389 | cgi_redirect(vmprintf(zFormat, ap)); |
| 390 | 390 | va_end(ap); |
| 391 | 391 | } |
| | @@ -927,11 +927,11 @@ |
| 927 | 927 | |
| 928 | 928 | |
| 929 | 929 | /* |
| 930 | 930 | ** Send a reply indicating that the HTTP request was malformed |
| 931 | 931 | */ |
| 932 | | -static void malformed_request(void){ |
| 932 | +static NORETURN void malformed_request(void){ |
| 933 | 933 | cgi_set_status(501, "Not Implemented"); |
| 934 | 934 | cgi_printf( |
| 935 | 935 | "<html><body>Unrecognized HTTP Request</body></html>\n" |
| 936 | 936 | ); |
| 937 | 937 | cgi_reply(); |
| | @@ -939,11 +939,11 @@ |
| 939 | 939 | } |
| 940 | 940 | |
| 941 | 941 | /* |
| 942 | 942 | ** Panic and die while processing a webpage. |
| 943 | 943 | */ |
| 944 | | -void cgi_panic(const char *zFormat, ...){ |
| 944 | +NORETURN void cgi_panic(const char *zFormat, ...){ |
| 945 | 945 | va_list ap; |
| 946 | 946 | cgi_reset_content(); |
| 947 | 947 | cgi_set_status(500, "Internal Server Error"); |
| 948 | 948 | cgi_printf( |
| 949 | 949 | "<html><body><h1>Internal Server Error</h1>\n" |
| 950 | 950 | |