diff options
author | Zandr Martin <zandrmartin@gmail.com> | 2016-09-02 13:46:19 -0500 |
---|---|---|
committer | Zandr Martin <zandrmartin@gmail.com> | 2016-09-02 13:46:19 -0500 |
commit | 79ffea328c992c5109406771a59a9f016d85970d (patch) | |
tree | 5d965e72127f227ea0a38dc5c6e4fc14e08d9498 /common/util.c | |
parent | refactor commands.c (diff) | |
parent | Merge pull request #878 from lukaslihotzki/master (diff) | |
download | sway-79ffea328c992c5109406771a59a9f016d85970d.tar.gz sway-79ffea328c992c5109406771a59a9f016d85970d.tar.zst sway-79ffea328c992c5109406771a59a9f016d85970d.zip |
Merge branch 'master' of git://github.com/SirCmpwn/sway into commands-refactor
Diffstat (limited to 'common/util.c')
-rw-r--r-- | common/util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/util.c b/common/util.c index f0b0fdf0..f2302676 100644 --- a/common/util.c +++ b/common/util.c | |||
@@ -1,10 +1,13 @@ | |||
1 | #include <math.h> | 1 | #include <math.h> |
2 | #include <stdint.h> | ||
2 | #include <stdio.h> | 3 | #include <stdio.h> |
3 | #include <string.h> | ||
4 | #include <stdlib.h> | 4 | #include <stdlib.h> |
5 | #include <string.h> | ||
6 | #include <wlc/wlc.h> | ||
7 | #include <xkbcommon/xkbcommon-names.h> | ||
8 | #include "log.h" | ||
5 | #include "readline.h" | 9 | #include "readline.h" |
6 | #include "util.h" | 10 | #include "util.h" |
7 | #include "log.h" | ||
8 | 11 | ||
9 | int wrap(int i, int max) { | 12 | int wrap(int i, int max) { |
10 | return ((i % max) + max) % max; | 13 | return ((i % max) + max) % max; |