aboutsummaryrefslogtreecommitdiff
path: root/sway/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/util.c')
-rw-r--r--sway/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/util.c b/sway/util.c
index 25aeb9f4..9a59ddf9 100644
--- a/sway/util.c
+++ b/sway/util.c
@@ -1,3 +1,5 @@
+#include "util.h"
+
int wrap(int i, int max) {
return ((i % max) + max) % max;
}