]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/fwp/fwp_utils.c
Convert debug messages to uLUt and fix #include dependencies
[frescor/fwp.git] / fwp / lib / fwp / fwp_utils.c
index 28ef3abf04ed0693db35db1062e8bc396136c0a1..69cf356b0c096c47cd7dbdd9984b1cacd65321c9 100644 (file)
 /**************************************************************************/
 #include "fwp_utils.h"
 
+#include <unistd.h>
 #include <sched.h>
 /*#include <stdlib.h>*/
+#include "fwp_debug.h"
+#include <errno.h>
 
 /*const int prio_to_ac[8] = {2,3,3,2,1,1,0,0};
 const unsigned int ac_to_tos[4] = {224,160,96,64};
@@ -54,7 +57,7 @@ const char *ac_to_text[4] = {[AC_VO] = "AC_VO", [AC_VI] = "AC_VI",
                             [AC_BE] = "AC_BE", [AC_BK] = "AC_BK", };
 */
 
-inline void fwp_timespec_add (struct timespec *sum, const struct timespec *left,
+void fwp_timespec_add (struct timespec *sum, const struct timespec *left,
              const struct timespec *right)
 {
        sum->tv_sec = left->tv_sec + right->tv_sec;
@@ -66,7 +69,7 @@ inline void fwp_timespec_add (struct timespec *sum, const struct timespec *left,
        }
 }
 
-inline void fwp_timespec_sub (struct timespec *diff, const struct timespec *left,
+void fwp_timespec_sub (struct timespec *diff, const struct timespec *left,
              const struct timespec *right)
 {
        diff->tv_sec = left->tv_sec - right->tv_sec;