static void list_item(enum action act, struct sbuf *sb) { if(act==ACTION_LIST_LONG) { ls_long_output(sb); } else { ls_short_output(sb); } }
static void list_item(int json, enum action act, struct sbuf *sb) { if(act==ACTION_LONG_LIST) { if(json) ls_long_output_json(sb); else ls_long_output(sb); } else { if(json) ls_short_output_json(sb); else ls_short_output(sb); } }