From: Guillem Jover Date: Mon, 7 Jan 2008 09:31:44 +0000 (+0200) Subject: Do not use extern inline as it changes semantics from GNU C to C99 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf28215d63bca1f16a6699597c17d4ba85669e23;p=dpkg Do not use extern inline as it changes semantics from GNU C to C99 --- 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; }