diff options
author | Sebastian Nadler <sebastian.nadler@tum.de> | 2023-12-01 14:00:18 +0100 |
---|---|---|
committer | Sebastian Nadler <sebastian.nadler@tum.de> | 2023-12-01 14:00:18 +0100 |
commit | 8985d484f235c9043ec5e57835d730e249e4fecc (patch) | |
tree | 18bde17a62d552f0f16efa06a928a412e35ff93e | |
parent | 1f3787891075decb39c6dae77120f53d044fb001 (diff) | |
download | gana-8985d484f235c9043ec5e57835d730e249e4fecc.tar.gz gana-8985d484f235c9043ec5e57835d730e249e4fecc.zip |
Uncrustify
-rw-r--r-- | gns-protocol-numbers/h.footer | 4 | ||||
-rw-r--r-- | gns-protocol-numbers/h.header | 5 | ||||
-rw-r--r-- | gns-protocol-numbers/h.template | 6 | ||||
-rw-r--r-- | gns-service-port-numbers/h.footer | 4 | ||||
-rw-r--r-- | gns-service-port-numbers/h.header | 5 | ||||
-rw-r--r-- | gns-service-port-numbers/h.template | 6 |
6 files changed, 14 insertions, 16 deletions
diff --git a/gns-protocol-numbers/h.footer b/gns-protocol-numbers/h.footer index 20a53af..15aade3 100644 --- a/gns-protocol-numbers/h.footer +++ b/gns-protocol-numbers/h.footer | |||
@@ -2,11 +2,10 @@ | |||
2 | .name = NULL, | 2 | .name = NULL, |
3 | .number = 0 | 3 | .number = 0 |
4 | } | 4 | } |
5 | |||
6 | }; | 5 | }; |
7 | 6 | ||
8 | uint16_t | 7 | uint16_t |
9 | GNUNET_GNS_protocol_name_to_number (const char* name) | 8 | GNUNET_GNS_protocol_name_to_number (const char *name) |
10 | { | 9 | { |
11 | int i = 0; | 10 | int i = 0; |
12 | while (NULL != GNUNET_GNS_Protocols[i].name) | 11 | while (NULL != GNUNET_GNS_Protocols[i].name) |
@@ -18,6 +17,7 @@ GNUNET_GNS_protocol_name_to_number (const char* name) | |||
18 | return 0; | 17 | return 0; |
19 | } | 18 | } |
20 | 19 | ||
20 | |||
21 | const char* | 21 | const char* |
22 | GNUNET_GNS_protocol_number_to_name (uint16_t number) | 22 | GNUNET_GNS_protocol_number_to_name (uint16_t number) |
23 | { | 23 | { |
diff --git a/gns-protocol-numbers/h.header b/gns-protocol-numbers/h.header index 8571e41..54c4b00 100644 --- a/gns-protocol-numbers/h.header +++ b/gns-protocol-numbers/h.header | |||
@@ -38,10 +38,9 @@ extern "C" { | |||
38 | 38 | ||
39 | struct GNUNET_GNS_Protocol | 39 | struct GNUNET_GNS_Protocol |
40 | { | 40 | { |
41 | const char* name; | 41 | const char *name; |
42 | 42 | ||
43 | uint16_t number; | 43 | uint16_t number; |
44 | }; | 44 | }; |
45 | 45 | ||
46 | struct GNUNET_GNS_Protocol GNUNET_GNS_Protocols[] = | 46 | struct GNUNET_GNS_Protocol GNUNET_GNS_Protocols[] = { |
47 | { | ||
diff --git a/gns-protocol-numbers/h.template b/gns-protocol-numbers/h.template index 6ca56e3..0ed64b5 100644 --- a/gns-protocol-numbers/h.template +++ b/gns-protocol-numbers/h.template | |||
@@ -1,8 +1,8 @@ | |||
1 | |||
2 | |||
3 | /** | 1 | /** |
4 | * {{Comment}} | 2 | * {{Comment}} |
5 | */ | 3 | */ |
6 | { .name = "{{Name}}", | 4 | { |
5 | .name = "{{Name}}", | ||
7 | .number = {{Number}} | 6 | .number = {{Number}} |
8 | }, | 7 | }, |
8 | |||
diff --git a/gns-service-port-numbers/h.footer b/gns-service-port-numbers/h.footer index 614133b..e2f02f9 100644 --- a/gns-service-port-numbers/h.footer +++ b/gns-service-port-numbers/h.footer | |||
@@ -2,11 +2,10 @@ | |||
2 | .name = NULL, | 2 | .name = NULL, |
3 | .port = 0 | 3 | .port = 0 |
4 | } | 4 | } |
5 | |||
6 | }; | 5 | }; |
7 | 6 | ||
8 | uint16_t | 7 | uint16_t |
9 | GNUNET_GNS_service_port_name_to_number (const char* name) | 8 | GNUNET_GNS_service_port_name_to_number (const char *name) |
10 | { | 9 | { |
11 | int i = 0; | 10 | int i = 0; |
12 | while (NULL != GNUNET_GNS_ServicePorts[i].name) | 11 | while (NULL != GNUNET_GNS_ServicePorts[i].name) |
@@ -18,6 +17,7 @@ GNUNET_GNS_service_port_name_to_number (const char* name) | |||
18 | return 0; | 17 | return 0; |
19 | } | 18 | } |
20 | 19 | ||
20 | |||
21 | const char* | 21 | const char* |
22 | GNUNET_GNS_service_port_number_to_name (uint16_t port) | 22 | GNUNET_GNS_service_port_number_to_name (uint16_t port) |
23 | { | 23 | { |
diff --git a/gns-service-port-numbers/h.header b/gns-service-port-numbers/h.header index ed8860e..6cedfe8 100644 --- a/gns-service-port-numbers/h.header +++ b/gns-service-port-numbers/h.header | |||
@@ -38,10 +38,9 @@ extern "C" { | |||
38 | 38 | ||
39 | struct GNUNET_GNS_ServicePort | 39 | struct GNUNET_GNS_ServicePort |
40 | { | 40 | { |
41 | const char* name; | 41 | const char *name; |
42 | 42 | ||
43 | uint16_t port; | 43 | uint16_t port; |
44 | }; | 44 | }; |
45 | 45 | ||
46 | struct GNUNET_GNS_ServicePort GNUNET_GNS_ServicePorts[] = | 46 | struct GNUNET_GNS_ServicePort GNUNET_GNS_ServicePorts[] = { |
47 | { | ||
diff --git a/gns-service-port-numbers/h.template b/gns-service-port-numbers/h.template index 779edf9..e2f35e5 100644 --- a/gns-service-port-numbers/h.template +++ b/gns-service-port-numbers/h.template | |||
@@ -1,8 +1,8 @@ | |||
1 | |||
2 | |||
3 | /** | 1 | /** |
4 | * {{Comment}} | 2 | * {{Comment}} |
5 | */ | 3 | */ |
6 | { .name = "{{Name}}", | 4 | { |
5 | .name = "{{Name}}", | ||
7 | .port = {{Number}} | 6 | .port = {{Number}} |
8 | }, | 7 | }, |
8 | |||