aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-01-23 15:50:57 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-01-23 15:51:38 -0500
commit038bb8cc7c4dee77f8ee4ba3ac1ffc47409b2370 (patch)
tree99d79313f422dccfc45307d5960eb873c3d1e226 /common/util.c
parentMerge pull request #466 from christophgysin/swaybar_usage (diff)
downloadsway-038bb8cc7c4dee77f8ee4ba3ac1ffc47409b2370.tar.gz
sway-038bb8cc7c4dee77f8ee4ba3ac1ffc47409b2370.tar.zst
sway-038bb8cc7c4dee77f8ee4ba3ac1ffc47409b2370.zip
s/numlen/log10/g
Diffstat (limited to 'common/util.c')
-rw-r--r--common/util.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/common/util.c b/common/util.c
index 243f90a8..7602216c 100644
--- a/common/util.c
+++ b/common/util.c
@@ -4,16 +4,6 @@ int wrap(int i, int max) {
4 return ((i % max) + max) % max; 4 return ((i % max) + max) % max;
5} 5}
6 6
7int numlen(int n) {
8 if (n >= 1000000) return 7;
9 if (n >= 100000) return 6;
10 if (n >= 10000) return 5;
11 if (n >= 1000) return 4;
12 if (n >= 100) return 3;
13 if (n >= 10) return 2;
14 return 1;
15}
16
17static struct modifier_key { 7static struct modifier_key {
18 char *name; 8 char *name;
19 uint32_t mod; 9 uint32_t mod;