summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00103-bugs-3.c
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2021-11-21 17:04:21 +0900
committerMichele Calgaro <[email protected]>2021-11-21 17:09:35 +0900
commite6ba08c3b21cdb14ee3a97b5d584759a4597b54b (patch)
treee8b4121323f2f448aeaa15bf3bddb465f36aea8b /debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00103-bugs-3.c
parentf312c235ea5f9971066f3808997d20f89c25f33b (diff)
downloadextra-dependencies-e6ba08c3b21cdb14ee3a97b5d584759a4597b54b.tar.gz
extra-dependencies-e6ba08c3b21cdb14ee3a97b5d584759a4597b54b.zip
uncrustify-trinity: updated based on upstream version 0.74.0
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00103-bugs-3.c')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00103-bugs-3.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00103-bugs-3.c b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00103-bugs-3.c
deleted file mode 100644
index 07d410b1..00000000
--- a/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00103-bugs-3.c
+++ /dev/null
@@ -1,49 +0,0 @@
-
-#ifdef CRUD
-#define JUNK a
-#endif
-
-#ifdef __QNX__
-/**
- * Does all that QNX trickery to get the MAC address of the interface
- *
- * @param if_name The interface name: ie "en0" or "eth0"
- * @param mac Pointer to a 6-byte array
- * @return SUCCESS or FAILURE
- */
-static INT32 socket_get_mac_qnx(const CHAR *if_name, UINT8 *mac)
-{
- CHAR ionet_name[50];
- INT32 en_fd;
-
-#if QNX_RELEASE >= 630
- nic_config_t nic;
- INT32 dcmd = DCMD_IO_NET_GET_CONFIG;
-#else
- Nic_t nic;
- INT32 dcmd = DCMD_IO_NET_NICINFO;
-#endif
- INT32 ret_val = FAILURE;
-
- memset(mac, 0, 6);
-
- /* Build the full name */
- snprintf(ionet_name, sizeof(ionet_name), "/dev/io-net/%s", if_name);
-
- /* Open the device */
- en_fd = open(ionet_name, O_RDWR);
- if (en_fd >= 0)
- {
- /* Get the interface info */
- if (devctl(en_fd, dcmd, &nic, sizeof(nic), NULL) == EOK)
- {
- memcpy(mac, nic.current_address, 6);
- ret_val = SUCCESS;
- }
-
- close(en_fd);
- }
- return(ret_val);
-}
-#endif
-