Пример #1
0
static void list_item(enum action act, struct sbuf *sb)
{
	if(act==ACTION_LIST_LONG)
	{
		ls_long_output(sb);
	}
	else
	{
		ls_short_output(sb);
	}
}
Пример #2
0
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);
	}
}