Skip to content

Commit

Permalink
refactor(tools): Simplify include logic in ua-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Oct 29, 2024
1 parent 00b1834 commit 8945d6e
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions tools/ua-cli/ua.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,17 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2021 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
* Copyright 2021, 2024 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
*/

/* Enable POSIX features */
#include <open62541/plugin/log.h>
#if !defined(_XOPEN_SOURCE)
# define _XOPEN_SOURCE 600
#endif
#ifndef _DEFAULT_SOURCE
# define _DEFAULT_SOURCE
#endif
/* On older systems we need to define _BSD_SOURCE.
* _DEFAULT_SOURCE is an alias for that. */
#ifndef _BSD_SOURCE
# define _BSD_SOURCE
#endif

#include <stdio.h>
#include <ctype.h>
#include <open62541/client.h>
#include <open62541/client_config_default.h>
#include "../../deps/mp_printf.h"

#include <stdio.h>
#include <ctype.h>

static UA_Client *client = NULL;
static UA_ClientConfig cc;
static UA_NodeId nodeidval = {0};
Expand Down

0 comments on commit 8945d6e

Please sign in to comment.