From cf28215d63bca1f16a6699597c17d4ba85669e23 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 7 Jan 2008 11:31:44 +0200 Subject: [PATCH] Do not use extern inline as it changes semantics from GNU C to C99 --- ChangeLog | 6 ++++++ lib/nfmalloc.c | 3 ++- lib/varbuf.c | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 984ef053..abf6bbaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-07 Guillem Jover + + * lib/nfmalloc.c (nfmalloc): Remove inline keyword as extern inline + changes semantics from GNU C to C99. + * lib/varbuf.c (varbufaddc): Likewise. + 2008-01-07 Guillem Jover * dpkg-deb/extract.c (extracthalf): Move negative member length check diff --git a/lib/nfmalloc.c b/lib/nfmalloc.c index 9b3cfcf5..233fa627 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 9f8a6665..15dd15dd 100644 --- a/lib/varbuf.c +++ b/lib/varbuf.c @@ -27,7 +27,9 @@ #include #include -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; } -- 2.39.5