diff options
author | Guillem Jover <guillem@debian.org> | 2008-01-07 11:31:44 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2008-01-07 11:31:44 +0200 |
commit | cf28215d63bca1f16a6699597c17d4ba85669e23 (patch) | |
tree | b3abe0516cb141b34ab01d051160999c96c60a61 /lib | |
parent | daf4cadfd9258c2eaede0255400e60f5622e627b (diff) | |
download | dpkg-cf28215d63bca1f16a6699597c17d4ba85669e23.tar.gz |
Do not use extern inline as it changes semantics from GNU C to C99
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nfmalloc.c | 3 | ||||
-rw-r--r-- | lib/varbuf.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/nfmalloc.c b/lib/nfmalloc.c index 9b3cfcf56..233fa6279 100644 --- a/lib/nfmalloc.c +++ b/lib/nfmalloc.c @@ -45,7 +45,8 @@ static void nfobstack_init(void) { obstack_chunk_size(&db_obs) = CHUNK_SIZE; } -inline void *nfmalloc(size_t size) +void * +nfmalloc(size_t size) { OBSTACK_INIT; return obstack_alloc(&db_obs, size); diff --git a/lib/varbuf.c b/lib/varbuf.c index 9f8a66659..15dd15dd9 100644 --- a/lib/varbuf.c +++ b/lib/varbuf.c @@ -27,7 +27,9 @@ #include <dpkg.h> #include <dpkg-db.h> -inline void varbufaddc(struct varbuf *v, int c) { +void +varbufaddc(struct varbuf *v, int c) +{ if (v->used >= v->size) varbufextend(v); v->buf[v->used++]= c; } |