summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adrien Schildknecht <adrien+dev@schischi.me>2013-05-17 21:53:49 +0200
committerGravatar Adrien Schildknecht <adrien+dev@schischi.me>2013-05-17 21:53:49 +0200
commit58b31130e4065b2d00f470902f0c741c3d5315e8 (patch)
tree331362519977d96923f9753e67c5be5b5b8efd95
parent610fd1e7a2724f9f78cafbc957350085b86dacef (diff)
fix compilation errors on 32bits systems
-rw-r--r--xcwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xcwd.c b/xcwd.c
index f20ed2a..3b92c68 100644
--- a/xcwd.c
+++ b/xcwd.c
@@ -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);