[hackers] [libixp] Add mk/gcc.mk

From: Kris Maglione <jg_AT_suckless.org>
Date: Sat Jun 02 17:04:31 2007

changeset: 63:04901ee1b2aa
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sat Jun 02 11:03:53 2007 -0400
summary: Add mk/gcc.mk

diff -r 03eb06f56ca7 -r 04901ee1b2aa libixp/client.c
--- a/libixp/client.c Fri Jun 01 15:27:55 2007 -0400
+++ b/libixp/client.c Sat Jun 02 11:03:53 2007 -0400
@@ -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 -r 03eb06f56ca7 -r 04901ee1b2aa mk/gcc.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/gcc.mk Sat Jun 02 11:03:53 2007 -0400
@@ -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 \
Received on Sat Jun 02 2007 - 17:04:31 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:15 UTC