mirror of
https://github.com/roswell/roswell.git
synced 2026-09-10 07:16:17 -04:00
change indentation style a bit
This commit is contained in:
parent
87966ec6a6
commit
0682a5a6c2
|
|
@ -32,8 +32,7 @@ int extract(const char *filename, int do_extract, int flags,const char* outputpa
|
|||
s(str);
|
||||
}
|
||||
|
||||
int cmd_tar(int argc, const char **argv)
|
||||
{
|
||||
int cmd_tar(int argc, const char **argv) {
|
||||
const char *filename = NULL;
|
||||
const char *outputpath = NULL;
|
||||
int compress, flags=0, mode, opt;
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
#include "util.h"
|
||||
#include "opt.h"
|
||||
|
||||
int cmd_config(int argc, const char **argv)
|
||||
{
|
||||
int cmd_config(int argc, const char **argv) {
|
||||
char* home=configdir();
|
||||
char* path=cat(home,"config",NULL);
|
||||
int ret;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@
|
|||
extern char** argv_orig;
|
||||
int proccmd_with_subcmd(char* path,char* subcmd,int argc,char** argv,LVal option,LVal command);
|
||||
|
||||
int cmd_help(int argc, const char **argv)
|
||||
{
|
||||
int cmd_help(int argc, const char **argv) {
|
||||
LVal help=(LVal)NULL;
|
||||
int i;int cmdmax,optmax;
|
||||
char *fmt;
|
||||
|
|
@ -135,6 +134,5 @@ int cmd_help(int argc, const char **argv)
|
|||
}
|
||||
sL(dir);
|
||||
s(subcmds);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,8 +22,7 @@ char* ccl_binname(void) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
char** cmd_run_ccl(int argc,char** argv,struct sub_command* cmd)
|
||||
{
|
||||
char** cmd_run_ccl(int argc,char** argv,struct sub_command* cmd) {
|
||||
char** arg=NULL;
|
||||
char* home=configdir();
|
||||
char* arch=uname_m();
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ static int count=0;
|
|||
static int block=10240;
|
||||
static int fold=90;
|
||||
|
||||
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||
{
|
||||
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream) {
|
||||
int written = fwrite(ptr, size, nmemb, (FILE *)stream);
|
||||
int current = count/block;
|
||||
int dots;
|
||||
|
|
|
|||
|
|
@ -172,8 +172,7 @@ LVal delete_not_tags(char* tags,LVal tag) {
|
|||
return (LVal)ret;
|
||||
}
|
||||
|
||||
LVal filter_href(LVal t)
|
||||
{
|
||||
LVal filter_href(LVal t) {
|
||||
LVal tags=t;
|
||||
LVal ret=(LVal)NULL;
|
||||
char* href;
|
||||
|
|
@ -300,8 +299,7 @@ LVal parse_tags(FILE* fp,LVal before,int mode) {
|
|||
return current;
|
||||
}
|
||||
|
||||
LVal atag_list(char* filename)
|
||||
{
|
||||
LVal atag_list(char* filename) {
|
||||
FILE* fp;
|
||||
LVal ret=(LVal)NULL;
|
||||
if(verbose>0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue