Reindent dmap_add_field()

Fix indentation in dmap_add_field(), no functional changes.
This commit is contained in:
Julien BLACHE 2010-02-08 19:32:53 +01:00
parent 3280fd5cf9
commit 056f4b6997

View File

@ -733,55 +733,55 @@ dmap_add_field(struct evbuffer *evbuf, const struct dmap_field *df, char *strval
switch (df->type) switch (df->type)
{ {
case DMAP_TYPE_UBYTE: case DMAP_TYPE_UBYTE:
if (val.v_u32) if (val.v_u32)
dmap_add_char(evbuf, df->tag, val.v_u32); dmap_add_char(evbuf, df->tag, val.v_u32);
break; break;
case DMAP_TYPE_BYTE: case DMAP_TYPE_BYTE:
if (val.v_i32) if (val.v_i32)
dmap_add_char(evbuf, df->tag, val.v_i32); dmap_add_char(evbuf, df->tag, val.v_i32);
break; break;
case DMAP_TYPE_USHORT: case DMAP_TYPE_USHORT:
if (val.v_u32) if (val.v_u32)
dmap_add_short(evbuf, df->tag, val.v_u32); dmap_add_short(evbuf, df->tag, val.v_u32);
break; break;
case DMAP_TYPE_SHORT: case DMAP_TYPE_SHORT:
if (val.v_i32) if (val.v_i32)
dmap_add_short(evbuf, df->tag, val.v_i32); dmap_add_short(evbuf, df->tag, val.v_i32);
break; break;
case DMAP_TYPE_DATE: case DMAP_TYPE_DATE:
case DMAP_TYPE_UINT: case DMAP_TYPE_UINT:
if (val.v_u32) if (val.v_u32)
dmap_add_int(evbuf, df->tag, val.v_u32); dmap_add_int(evbuf, df->tag, val.v_u32);
break; break;
case DMAP_TYPE_INT: case DMAP_TYPE_INT:
if (val.v_i32) if (val.v_i32)
dmap_add_int(evbuf, df->tag, val.v_i32); dmap_add_int(evbuf, df->tag, val.v_i32);
break; break;
case DMAP_TYPE_ULONG: case DMAP_TYPE_ULONG:
if (val.v_u64) if (val.v_u64)
dmap_add_long(evbuf, df->tag, val.v_u64); dmap_add_long(evbuf, df->tag, val.v_u64);
break; break;
case DMAP_TYPE_LONG: case DMAP_TYPE_LONG:
if (val.v_i64) if (val.v_i64)
dmap_add_long(evbuf, df->tag, val.v_i64); dmap_add_long(evbuf, df->tag, val.v_i64);
break; break;
case DMAP_TYPE_STRING: case DMAP_TYPE_STRING:
if (strval) if (strval)
dmap_add_string(evbuf, df->tag, strval); dmap_add_string(evbuf, df->tag, strval);
break; break;
case DMAP_TYPE_VERSION: case DMAP_TYPE_VERSION:
case DMAP_TYPE_LIST: case DMAP_TYPE_LIST:
return; return;
} }
} }