lib: work around unnamed structs/unions
[dpdk.git] / lib / librte_eal / common / include / rte_devargs.h
index 039f728..c66895f 100644 (file)
@@ -76,6 +76,7 @@ struct rte_devargs {
        TAILQ_ENTRY(rte_devargs) next;
        /** Type of device. */
        enum rte_devtype type;
+       RTE_STD_C11
        union {
                /** Used if type is RTE_DEVTYPE_*_PCI. */
                struct {
@@ -86,7 +87,7 @@ struct rte_devargs {
                struct {
                        /** Driver name. */
                        char drv_name[32];
-               } virtual;
+               } virt;
        };
        /** Arguments string as given by user or "" for no argument. */
        char *args;
@@ -141,7 +142,7 @@ int rte_eal_parse_devargs_str(const char *devargs_str,
  *
  * @param devtype
  *   The type of the device.
- * @param devargs_list
+ * @param devargs_str
  *   The arguments as given by the user.
  *
  * @return