diff options
author | Adrien Schildknecht <adrien+dev@schischi.me> | 2013-05-17 21:53:49 +0200 |
---|---|---|
committer | Adrien Schildknecht <adrien+dev@schischi.me> | 2013-05-17 21:53:49 +0200 |
commit | 58b31130e4065b2d00f470902f0c741c3d5315e8 (patch) | |
tree | 331362519977d96923f9753e67c5be5b5b8efd95 | |
parent | 610fd1e7a2724f9f78cafbc957350085b86dacef (diff) |
fix compilation errors on 32bits systems
-rw-r--r-- | xcwd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -100,7 +100,7 @@ static long windowPid(Window focuswin) return pid; } -static char* windowStrings(Window focuswin, size_t *size, char* hint) +static char* windowStrings(Window focuswin, long unsigned int *size, char* hint) { Atom nameAtom = XInternAtom(dpy, hint, 1); Atom type; @@ -147,7 +147,7 @@ static processes_t getProcesses(void) p = malloc(sizeof(struct processes_s)); p->ps = malloc(globbuf.gl_pathc * sizeof(struct proc_s)); - LOG("Found %ld processes\n", globbuf.gl_pathc); + LOG("Found %zu processes\n", globbuf.gl_pathc); for (i = j = 0; i < globbuf.gl_pathc; i++) { char name[32]; FILE *tn; @@ -235,9 +235,9 @@ int main(int argc, const char *argv[]) qsort(p->ps, p->n, sizeof(struct proc_s), ppidCmp); } else { - size_t size; - char* strings; + long unsigned int size; unsigned int i; + char* strings; struct proc_s *res = NULL, key; qsort(p->ps, p->n, sizeof(struct proc_s), nameCmp); |