Change examples' header file including guard from pragma-once to ifndef-define.

pull/286/head
John Safranek 2020-09-24 16:50:35 -07:00
parent 6cbc0d855e
commit 1be4042711
No known key found for this signature in database
GPG Key ID: 8CE817DE0D3CCB4A
6 changed files with 39 additions and 27 deletions

View File

@ -19,13 +19,11 @@
*/
#pragma once
#ifndef _WOLFSSH_CLIENT_H_
#define _WOLFSSH_CLIENT_H_
#ifndef _WOLFSSH_EXAMPLES_CLIENT_H_
#define _WOLFSSH_EXAMPLES_CLIENT_H_
THREAD_RETURN WOLFSSH_THREAD client_test(void* args);
#endif /* _WOLFSSH_CLIENT_H_ */
#endif /* _WOLFSSH_EXAMPLES_CLIENT_H_ */

View File

@ -19,13 +19,11 @@
*/
#pragma once
#ifndef _WOLFSSH_ECHOSERVER_H_
#define _WOLFSSH_ECHOSERVER_H_
#ifndef _WOLFSSH_EXAMPLES_ECHOSERVER_H_
#define _WOLFSSH_EXAMPLES_ECHOSERVER_H_
THREAD_RETURN WOLFSSH_THREAD echoserver_test(void* args);
#endif /* _WOLFSSH_ECHOSERVER_H_ */
#endif /* _WOLFSSH_EXAMPLES_ECHOSERVER_H_ */

View File

@ -1,8 +1,27 @@
#pragma once
/* wolfssh_portfwd.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
*
* This file is part of wolfSSH.
*
* wolfSSH 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.
*
* wolfSSH 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 wolfSSH. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _WOLFSSH_CLIENT_H_
#define _WOLFSSH_CLIENT_H_
#ifndef _WOLFSSH_EXAMPLES_PORTFWD_H_
#define _WOLFSSH_EXAMPLES_PORTFWD_H_
THREAD_RETURN WOLFSSH_THREAD portfwd_worker(void* args);
#endif /* _WOLFSSH_CLIENT_H_ */
#endif /* _WOLFSSH_EXAMPLES_PORTFWD_H_ */

View File

@ -19,11 +19,9 @@
*/
#pragma once
#ifndef _WOLFSSH_SCPCLIENT_H_
#define _WOLFSSH_SCPCLIENT_H_
#ifndef _WOLFSSH_EXAMPLES_SCPCLIENT_H_
#define _WOLFSSH_EXAMPLES_SCPCLIENT_H_
THREAD_RETURN WOLFSSH_THREAD scp_client(void*);
#endif /* _WOLFSSH_SCPCLIENT_H_ */
#endif /* _WOLFSSH_EXAMPLES_SCPCLIENT_H_ */

View File

@ -19,13 +19,11 @@
*/
#pragma once
#ifndef _WOLFSSH_SERVER_H_
#define _WOLFSSH_SERVER_H_
#ifndef _WOLFSSH_EXAMPLES_SERVER_H_
#define _WOLFSSH_EXAMPLES_SERVER_H_
THREAD_RETURN WOLFSSH_THREAD server_test(void* args);
#endif /* _WOLFSSH_SERVER_H_ */
#endif /* _WOLFSSH_EXAMPLES_SERVER_H_ */

View File

@ -19,9 +19,10 @@
*/
#pragma once
#ifndef _WOLFSSH_EXAMPLES_SFTPCLIENT_H_
#define _WOLFSSH_EXAMPLES_SFTPCLIENT_H_
THREAD_RETURN WOLFSSH_THREAD sftpclient_test(void* args);
#endif /* _WOLFSSH_EXAMPLES_SFTPCLIENT_H_ */