give dstring_adjust a prototype and fix up some whitespace

This commit is contained in:
Bill Currie 2002-07-29 19:52:19 +00:00
parent edf55349b3
commit d00ed9619f
2 changed files with 2 additions and 2 deletions

View file

@ -42,6 +42,7 @@ typedef struct dstring_s {
// General buffer functions
dstring_t *dstring_new(void);
void dstring_delete (dstring_t *dstr);
void dstring_adjust (dstring_t *dstr);
void dstring_append (dstring_t *dstr, const char *data, unsigned int len);
void dstring_insert(dstring_t *dstr, const char *data, unsigned int len,
unsigned int pos);

View file

@ -55,8 +55,7 @@ dstring_delete (dstring_t *dstr)
free (dstr);
}
inline
void
inline void
dstring_adjust (dstring_t *dstr)
{
if (dstr->size > dstr->truesize) {