From 3aa5d2aeedb2502d4b140766db5e73f62331c7b0 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Sat, 30 Dec 2017 11:36:20 +0800 Subject: [PATCH] Fix License format Signed-off-by: Jianhui Zhao --- example/helloworld.c | 17 +++++++++++++++++ src/action.c | 2 +- src/action.h | 2 +- src/client.c | 2 +- src/client.h | 2 +- src/common.h | 17 +++++++++++++++++ src/config.h.in | 17 +++++++++++++++++ src/file.c | 2 +- src/file.h | 2 +- src/log.c | 2 +- src/log.h | 2 +- src/uh_ssl.c | 2 +- src/uh_ssl.h | 2 +- src/uhttpd.c | 2 +- src/uhttpd.h | 2 +- src/utils.c | 2 +- src/utils.h | 2 +- 17 files changed, 65 insertions(+), 14 deletions(-) diff --git a/example/helloworld.c b/example/helloworld.c index 2af166d..6c605ba 100755 --- a/example/helloworld.c +++ b/example/helloworld.c @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2017 Jianhui Zhao + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include #define port "8000" diff --git a/src/action.c b/src/action.c index 81e052f..d338237 100755 --- a/src/action.c +++ b/src/action.c @@ -3,7 +3,7 @@ * by invoking registered C functions. The action handler is ideal for * situations when you want to generate a simple response using C code. * - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/action.h b/src/action.h index 7556e51..e9a35f3 100755 --- a/src/action.h +++ b/src/action.h @@ -3,7 +3,7 @@ * by invoking registered C functions. The action handler is ideal for * situations when you want to generate a simple response using C code. * - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/client.c b/src/client.c index 22ea3de..b1d74ce 100755 --- a/src/client.c +++ b/src/client.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/client.h b/src/client.h index 3d5dd26..28fd5d7 100755 --- a/src/client.h +++ b/src/client.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/common.h b/src/common.h index 3b9e4a7..e035f2c 100755 --- a/src/common.h +++ b/src/common.h @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2017 Jianhui Zhao + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef _COMMON_H #define _COMMON_H diff --git a/src/config.h.in b/src/config.h.in index 3300ec9..728edf7 100755 --- a/src/config.h.in +++ b/src/config.h.in @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2017 Jianhui Zhao + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef _UHTTPD_CONFIG_H #define _UHTTPD_CONFIG_H diff --git a/src/file.c b/src/file.c index 3dab3df..9f40b1b 100755 --- a/src/file.c +++ b/src/file.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/file.h b/src/file.h index 3040b21..1130c13 100755 --- a/src/file.h +++ b/src/file.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/log.c b/src/log.c index 57c4d91..c6984fe 100755 --- a/src/log.c +++ b/src/log.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/log.h b/src/log.h index b8dff24..4e08f68 100755 --- a/src/log.h +++ b/src/log.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/uh_ssl.c b/src/uh_ssl.c index 1c661ce..86bedcb 100755 --- a/src/uh_ssl.c +++ b/src/uh_ssl.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * Copyright (C) 2010-2013 Jo-Philipp Wich * Copyright (C) 2013 Felix Fietkau * diff --git a/src/uh_ssl.h b/src/uh_ssl.h index e0c24db..49fe628 100755 --- a/src/uh_ssl.h +++ b/src/uh_ssl.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * Copyright (C) 2010-2013 Jo-Philipp Wich * Copyright (C) 2013 Felix Fietkau * diff --git a/src/uhttpd.c b/src/uhttpd.c index d7e667a..c8fc563 100755 --- a/src/uhttpd.c +++ b/src/uhttpd.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/uhttpd.h b/src/uhttpd.h index 2844fdb..6105f2d 100755 --- a/src/uhttpd.h +++ b/src/uhttpd.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/utils.c b/src/utils.c index b047f83..2d55486 100755 --- a/src/utils.c +++ b/src/utils.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/utils.h b/src/utils.h index 1d0eff4..d10b6f4 100755 --- a/src/utils.h +++ b/src/utils.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Jianhui Zhao + * Copyright (C) 2017 Jianhui Zhao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by