Skip to content

Commit 0f3547c

Browse files
author
Stefan Baranoff
committed
apply pending uncrustify changes since v2.6.15 and this patch set
Starting with v2.6.15 tehre were uncrustify changes that needed applied; then there were also differences in dev environments: * Ubuntu 22.04 has 0.72.0_f * Alma 9 has 0.75.1_f and that caused output deltas from uncrustify; so reconcile those to make the build system happy.
1 parent 48a571b commit 0f3547c

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

src/openvpn/dco_linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ dco_new_peer(dco_context_t *dco, unsigned int peerid, int sd,
283283
}
284284

285285
static int
286-
ovpn_nl_cb_finish(struct nl_msg(*msg) __attribute__ ((unused)), void *arg)
286+
ovpn_nl_cb_finish(struct nl_msg (*msg) __attribute__ ((unused)), void *arg)
287287
{
288288
int *status = arg;
289289

@@ -300,7 +300,7 @@ ovpn_nl_cb_finish(struct nl_msg(*msg) __attribute__ ((unused)), void *arg)
300300
* reply to see if it contains a human-readable error. If found, it is printed.
301301
*/
302302
static int
303-
ovpn_nl_cb_error(struct sockaddr_nl(*nla) __attribute__ ((unused)),
303+
ovpn_nl_cb_error(struct sockaddr_nl (*nla) __attribute__ ((unused)),
304304
struct nlmsgerr *err, void *arg)
305305
{
306306
struct nlmsghdr *nlh = (struct nlmsghdr *)err - 1;

src/openvpn/error.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ struct gc_arena;
7171
#ifdef _WIN32
7272
#define openvpn_errno() GetLastError()
7373
const char *strerror_win32(DWORD errnum, struct gc_arena *gc);
74+
7475
#else
7576
#define openvpn_errno() errno
7677
#endif

src/openvpn/reflect_filter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ initial_rate_limit_init(int max_per_period, int period_length);
7272
* free the initial-packet rate limiter structure
7373
*/
7474
void initial_rate_limit_free(struct initial_packet_rate_limit *irl);
75+
7576
#endif /* ifndef REFLECT_FILTER_H */

src/openvpn/tun.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ tun_set(struct tuntap *tt,
755755
}
756756

757757
const char *tun_stat(const struct tuntap *tt, unsigned int rwflags, struct gc_arena *gc);
758+
758759
bool tun_name_is_fixed(const char *dev);
759760

760761
static inline bool

src/openvpn/xkey_provider.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ typedef struct
5555
do { \
5656
dmsg(f|M_NOLF, "xkey_provider: In %s: ", __func__); \
5757
dmsg(f|M_NOPREFIX, __VA_ARGS__); \
58-
} while(0)
58+
} while (0)
5959

6060
typedef enum
6161
{
@@ -597,7 +597,7 @@ static const OSSL_DISPATCH rsa_keymgmt_functions[] = {
597597
{OSSL_FUNC_KEYMGMT_GETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params},
598598
{OSSL_FUNC_KEYMGMT_GET_PARAMS, (void (*)(void))keymgmt_get_params},
599599
{OSSL_FUNC_KEYMGMT_SET_PARAMS, (void (*)(void))keymgmt_set_params},
600-
{OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params}, /* same as gettable */
600+
{OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params}, /* same as gettable */
601601
{OSSL_FUNC_KEYMGMT_QUERY_OPERATION_NAME, (void (*)(void))rsa_keymgmt_name},
602602
{0, NULL }
603603
};
@@ -613,7 +613,7 @@ static const OSSL_DISPATCH ec_keymgmt_functions[] = {
613613
{OSSL_FUNC_KEYMGMT_GETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params},
614614
{OSSL_FUNC_KEYMGMT_GET_PARAMS, (void (*)(void))keymgmt_get_params},
615615
{OSSL_FUNC_KEYMGMT_SET_PARAMS, (void (*)(void))keymgmt_set_params},
616-
{OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params}, /* same as gettable */
616+
{OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params}, /* same as gettable */
617617
{OSSL_FUNC_KEYMGMT_QUERY_OPERATION_NAME, (void (*)(void))ec_keymgmt_name},
618618
{0, NULL }
619619
};
@@ -629,7 +629,7 @@ static const OSSL_DISPATCH ed448_keymgmt_functions[] = {
629629
{OSSL_FUNC_KEYMGMT_GETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params},
630630
{OSSL_FUNC_KEYMGMT_GET_PARAMS, (void (*)(void))keymgmt_get_params},
631631
{OSSL_FUNC_KEYMGMT_SET_PARAMS, (void (*)(void))keymgmt_set_params},
632-
{OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params}, /* same as gettable */
632+
{OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params}, /* same as gettable */
633633
{0, NULL }
634634
};
635635

@@ -644,7 +644,7 @@ static const OSSL_DISPATCH ed25519_keymgmt_functions[] = {
644644
{OSSL_FUNC_KEYMGMT_GETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params},
645645
{OSSL_FUNC_KEYMGMT_GET_PARAMS, (void (*)(void))keymgmt_get_params},
646646
{OSSL_FUNC_KEYMGMT_SET_PARAMS, (void (*)(void))keymgmt_set_params},
647-
{OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params}, /* same as gettable */
647+
{OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS, (void (*)(void))keymgmt_gettable_params}, /* same as gettable */
648648
{0, NULL }
649649
};
650650

0 commit comments

Comments
 (0)