From c70d1ecad8bda731999020f6d89a2e7936d5ba5d Mon Sep 17 00:00:00 2001 From: bel Date: Tue, 3 Feb 2015 23:18:59 +0100 Subject: [PATCH] Update copyright note to 2015 --- include/civetweb.h | 5 ++++- src/civetweb.c | 1 + src/main.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/civetweb.h b/include/civetweb.h index 0c614543..45514dfb 100644 --- a/include/civetweb.h +++ b/include/civetweb.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2014 the Civetweb developers +/* Copyright (c) 2013-2015 the Civetweb developers * Copyright (c) 2004-2013 Sergey Lyubka * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -591,6 +591,7 @@ CIVETWEB_API void mg_cry(struct mg_connection *conn, /* utility method to compare two buffers, case incensitive. */ CIVETWEB_API int mg_strncasecmp(const char *s1, const char *s2, size_t len); + /* Connect to a websocket as a client Parameters: host: host to connect to, i.e. "echo.websocket.org" or "192.168.1.1" or "localhost" @@ -618,6 +619,7 @@ CIVETWEB_API struct mg_connection *mg_connect_websocket_client(const char *host, websocket_data_func data_func, websocket_close_func close_func, void * user_data); + /* Connect to a TCP server as a client (can be used to connect to a HTTP server) Parameters: host: host to connect to, i.e. "www.wikipedia.org" or "192.168.1.1" or "localhost" @@ -637,6 +639,7 @@ enum { TIMEOUT_INFINITE = -1 }; + /* Wait for a response from the server Parameters: conn: connection diff --git a/src/civetweb.c b/src/civetweb.c index 0da0e586..4f07651f 100644 --- a/src/civetweb.c +++ b/src/civetweb.c @@ -1572,6 +1572,7 @@ PRINTF_ARGS(4, 5); static void send_http_error(struct mg_connection *conn, int status, const char *reason, const char *fmt, ...) { + /* TODO: remove "reason" argument, since it is always NULL */ char buf[MG_BUF_LEN]; va_list ap; int len = 0, i, page_handler_found, scope; diff --git a/src/main.c b/src/main.c index 1b976cd9..2611272b 100644 --- a/src/main.c +++ b/src/main.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2014 the Civetweb developers +/* Copyright (c) 2013-2015 the Civetweb developers * Copyright (c) 2004-2013 Sergey Lyubka * * Permission is hereby granted, free of charge, to any person obtaining a copy