shared: make scratchbuf_str static

It fixes linking problem

tools/depmod.o: In function `output_symbols_bin':
depmod.c:(.text.output_symbols_bin+0x135): undefined reference to `scratchbuf_str'

for -O0 build, where gcc doesn't actually inline it.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
This commit is contained in:
Yauheni Kaliuta 2016-11-09 08:52:26 +02:00 committed by Lucas De Marchi
parent 6b77f18896
commit b34819bc0e

View File

@ -19,7 +19,7 @@ int scratchbuf_alloc(struct scratchbuf *buf, size_t sz);
void scratchbuf_release(struct scratchbuf *buf);
/* Return a C string */
inline char *scratchbuf_str(struct scratchbuf *buf)
static inline char *scratchbuf_str(struct scratchbuf *buf)
{
return buf->bytes;
}