libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

commit 705d4f076b29ed67cd00801a538e122cb31315c8
parent 625291276b6d5e8a04d016184812ffbcbf1a8e2c
Author: Kris Maglione <jg@suckless.org>
Date:   Sat,  2 Jun 2007 11:03:53 -0400

Add mk/gcc.mk

Diffstat:
libixp/client.c | 9+++++++--
mk/gcc.mk | 17+++++++++++++++++
2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/libixp/client.c b/libixp/client.c @@ -47,8 +47,13 @@ putfid(IxpCFid *f) { IxpClient *c; c = f->client; - f->next = c->freefid; - c->freefid = f; + if(f->fid == c->lastfid) { + c->lastfid--; + free(f); + }else { + f->next = c->freefid; + c->freefid = f; + } } static int diff --git a/mk/gcc.mk b/mk/gcc.mk @@ -0,0 +1,17 @@ +CFLAGS += \ + -std=gnu99 \ + -pipe \ + -Wall \ + -Wno-parentheses \ + -Wno-missing-braces \ + -Wno-switch \ + -Wno-comment \ + -Wno-sign-compare \ + -Wno-uninitialized \ + -Wno-unused-parameter \ + -Wimplicit \ + -Wreturn-type \ + -Wtrigraphs \ + -Wstrict-prototypes \ + -Wmissing-prototypes \ + -Wpointer-arith \