diff options
| author | Inqiyad Sabr <sabr@ariamath.xyz> | 2025-11-18 14:42:04 +0600 |
|---|---|---|
| committer | Inqiyad Sabr <sabr@ariamath.xyz> | 2025-11-18 14:42:04 +0600 |
| commit | ccad4019ce8e83cc7e9f3edb257c78bb51589421 (patch) | |
| tree | 344a0a47e0c0b330105b5d25d7ee9ac8284610f2 /cmus.c | |
| parent | 1a494a95e6436f90d3dfc1ca7647eafcc94e5034 (diff) | |
Fixing all redundancies in code reading, hopefully.
Diffstat (limited to 'cmus.c')
| -rw-r--r-- | cmus.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -3,12 +3,14 @@ #define FG "#222222" #define BG "#95b18b99" FILE *cmus_stat; -char cmus_str[64]; -void cmus(void) { - if (!cmus_stat) cmus_stat = fopen("/tmp/cmus-status","r"); +char cmus_str[80]; +void cmus(void) +{ + if (!cmus_stat) + cmus_stat = fopen("/tmp/cmus-status","r"); if (cmus_stat) { rewind(cmus_stat); - fgets(cmus_str,64,cmus_stat); + fgets(cmus_str,80,cmus_stat); } block(cmus_str,FG,BG,BG); } |