]> git.droids-corp.org - dpdk.git/blobdiff - lib/eal/common/eal_common_string_fns.c
interrupts: extend event list
[dpdk.git] / lib / eal / common / eal_common_string_fns.c
index 60c5dd66f9df22643096e5e7c5b86fcb033f24c4..ddd189165674234ea31d0a7aa8cee766a98a4ff9 100644 (file)
@@ -8,6 +8,7 @@
 #include <errno.h>
 
 #include <rte_string_fns.h>
+#include <rte_errno.h>
 
 /* split string into tokens */
 int
@@ -62,5 +63,6 @@ rte_strscpy(char *dst, const char *src, size_t dsize)
        /* Not enough room in dst, set NUL and return error. */
        if (res != 0)
                dst[res - 1] = '\0';
-       return -E2BIG;
+       rte_errno = E2BIG;
+       return -rte_errno;
 }