]> arthur.barton.de Git - netdata.git/blobdiff - src/ipc.c
use usec_t for microseconds time variables
[netdata.git] / src / ipc.c
index 54ebe81749aec4e36984009d75e6695e0e70f168..6a261c5c20a9bb9e2355bdcc63d47003550b491b 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -41,7 +41,6 @@ struct ipc_status {
  *  tells us to define it ourselves, but until recently Linux include files
  *  would also define it.
  */
-#ifndef __FreeBSD__
 #ifndef HAVE_UNION_SEMUN
 /* according to X/OPEN we have to define it ourselves */
 union semun {
@@ -51,19 +50,6 @@ union semun {
     struct seminfo *__buf;
 };
 #endif
-#else /* __FreeBSD__ */
-struct seminfo {
-        int     semmni,         /* # of semaphore identifiers */
-                semmns,         /* # of semaphores in system */
-                semmnu,         /* # of undo structures in system */
-                semmsl,         /* max # of semaphores per id */
-                semopm,         /* max # of operations per semop call */
-                semume,         /* max # of undo entries per process */
-                semusz,         /* size in bytes of undo structure */
-                semvmx,         /* semaphore maximum value */
-                semaem;         /* adjust on exit max value */
-};
-#endif /* __FreeBSD__ */
 
 static inline int ipc_sem_get_limits(struct ipc_limits *lim) {
     static procfile *ff = NULL;
@@ -174,7 +160,7 @@ static inline int ipc_sem_get_status(struct ipc_status *st) {
     return 0;
 }
 
-int do_ipc(int update_every, unsigned long long dt) {
+int do_ipc(int update_every, usec_t dt) {
     (void)dt;
 
     static int initialized = 0, read_limits_next = 0;