summaryrefslogtreecommitdiff
path: root/locking.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-05-10 17:22:05 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-05-10 17:22:05 +0200
commit255698e00c6200be70b6e72eec76c154249ac581 (patch)
tree2fd0c1befa221e2d74a9189e1645576f36a59ca4 /locking.h
parentb435a7a1b3fa6eec367d9b48a1f9b9cf13d617fa (diff)
make: allow to overwrite CFLAGS, CCACHE
Allow to define custom compile flags, e.g. ... make CFLAGS="-O2 -Wall" ... and also allow to overwrite ccache variable: make CCACHE= all Also do some minor fixes when built with -O2 -Wall. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'locking.h')
-rw-r--r--locking.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/locking.h b/locking.h
index ac10d5d..3d27939 100644
--- a/locking.h
+++ b/locking.h
@@ -69,7 +69,7 @@ static inline int rwlock_init(struct rwlock *l)
}
static inline int rwlock_init2(struct rwlock *l,
- pthread_rwlockattr_t *restrict attr)
+ pthread_rwlockattr_t *attr)
{
return -pthread_rwlock_init(&l->lock, attr);
}