Fix comment style (use /* */ instead of //)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2151 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.20
Stefan Bühler 15 years ago
parent fe8b7e575e
commit fcce4c9cbb

@ -545,7 +545,7 @@ static int connection_handle_write_prepare(server *srv, connection *con) {
data_string *ds;
/* no Content-Body, no Content-Length */
if (NULL != (ds = (data_string*) array_get_element(con->response.headers, "Content-Length"))) {
buffer_reset(ds->value); // Headers with empty values are ignored for output
buffer_reset(ds->value); /* Headers with empty values are ignored for output */
}
} else if (qlen > 0 || con->request.http_method != HTTP_METHOD_HEAD) {
/* qlen = 0 is important for Redirects (301, ...) as they MAY have
@ -847,7 +847,7 @@ int connection_reset(server *srv, connection *con) {
}
/* The cond_cache gets reset in response.c */
// config_cond_cache_reset(srv, con);
/* config_cond_cache_reset(srv, con); */
#ifdef USE_OPENSSL
if (con->ssl_error_want_reuse_buffer) {

@ -102,7 +102,7 @@ FREE_FUNC(mod_compress_free) {
return HANDLER_GO_ON;
}
// 0 on success, -1 for error
/* 0 on success, -1 for error */
int mkdir_recursive(char *dir) {
char *p = dir;
@ -118,13 +118,13 @@ int mkdir_recursive(char *dir) {
}
*p++ = '/';
if (!*p) return 0; // Ignore trailing slash
if (!*p) return 0; /* Ignore trailing slash */
}
return (mkdir(dir, 0700) != 0) && (errno != EEXIST) ? -1 : 0;
}
// 0 on success, -1 for error
/* 0 on success, -1 for error */
int mkdir_for_file(char *filename) {
char *p = filename;
@ -140,7 +140,7 @@ int mkdir_for_file(char *filename) {
}
*p++ = '/';
if (!*p) return -1; // Unexpected trailing slash in filename
if (!*p) return -1; /* Unexpected trailing slash in filename */
}
return 0;

@ -152,7 +152,7 @@ handler_t http_response_prepare(server *srv, connection *con) {
* */
config_cond_cache_reset(srv, con);
config_setup_connection(srv, con); // Perhaps this could be removed at other places.
config_setup_connection(srv, con); /* Perhaps this could be removed at other places. */
if (con->conf.log_condition_handling) {
log_error_write(srv, __FILE__, __LINE__, "s", "run condition");

@ -893,8 +893,8 @@ int main (int argc, char **argv) {
pid_fd = -1;
}
// Close stderr ASAP in the child process to make sure that nothing
// is being written to that fd which may not be valid anymore.
/* Close stderr ASAP in the child process to make sure that nothing
* is being written to that fd which may not be valid anymore. */
if (-1 == log_error_open(srv)) {
log_error_write(srv, __FILE__, __LINE__, "s", "Opening errorlog failed. Going down.");

Loading…
Cancel
Save