summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00104-bugs-4.c
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2021-05-19 16:22:10 +0900
committerMichele Calgaro <[email protected]>2021-05-19 19:14:52 +0900
commit71fb4a139179e9d27070f7f3e98971e3e029697f (patch)
tree92fbf03f1e546b3c99e6e06e98100b6ef8e4e2c6 /debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00104-bugs-4.c
parent6eae1a16a1001287ef5129db86f4ef2145ace3ca (diff)
downloadextra-dependencies-71fb4a139179e9d27070f7f3e98971e3e029697f.tar.gz
extra-dependencies-71fb4a139179e9d27070f7f3e98971e3e029697f.zip
uncrustify: updated to version 0.73
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00104-bugs-4.c')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00104-bugs-4.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00104-bugs-4.c b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00104-bugs-4.c
new file mode 100644
index 00000000..61885443
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00104-bugs-4.c
@@ -0,0 +1,26 @@
+
+static void set_md_connected(CHAR *msg_data)
+{
+ UINT32 rd_idx = 0;
+ CHAR mobile_device_id[MOBILE_DEVICE_NAME_LEN];
+ CHAR ip_addr[IP_ADDRESS_LEN];
+ CHAR mac_addr[MAC_ADDR_LEN];
+ CHAR ap_name[AP_NAME_LEN];
+
+ rdc_strz(msg_data, MAX_SIZE, &rd_idx, mobile_device_id, 0);
+ rdc_strz(msg_data, MAX_SIZE, &rd_idx, ip_addr, 0);
+ rdc_strz(msg_data, MAX_SIZE, &rd_idx, mac_addr, 0);
+ rdc_strz(msg_data, MAX_SIZE, &rd_idx, ap_name, 0);
+
+#if defined (DB_MGR_ORACLE)
+ (void)db_set_md_connected(mobile_device_id, ip_addr, mac_addr, ap_name);
+ LOG(LFTR, "CONNECTED Loco %s, IP Addr %s,MAC Addr %s, AP Name %s",
+ mobile_device_id, ip_addr, mac_addr, ap_name);
+#elif defined (DB_MGR_FILE)
+ LOG(LFTR, "%s CONNECTED Loco %s, IP Addr %s,MAC Addr %s, AP Name %s",
+ status_str, mobile_device_id, ip_addr, mac_addr, ap_name);
+#else
+#error Unknown device type must be DB_MGR_ORACLE or DB_MGR_FILE
+#endif
+}
+