Commit df1749ce authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use bool

parent 9a7a7f6e
......@@ -207,7 +207,7 @@ int Config::Parse()
FILE *fd;
char line[1024]; //TODO line length should not be limited
char tline[1024];
unsigned int something=0;
bool something = false;
Program *pp= new Program();
iconv_t to_unicode, check_unicode;
......@@ -263,7 +263,7 @@ int Config::Parse()
}
Programs.push_back(pp);
pp=new Program();
something=0;
something=false;
}
}
......@@ -274,7 +274,7 @@ int Config::Parse()
size_t tlen, ulen;
strgeta(line,tline,'=');
something=1;
something=true;
tptr=tline;
uptr=uline;
......@@ -300,7 +300,7 @@ int Config::Parse()
if(strstr(line,"program_ttl="))
{
strgeta(line,tline,'=');
something=1;
something=true;
pp->SetTTL(tline);
}
......@@ -311,7 +311,7 @@ int Config::Parse()
size_t tlen, ulen;
strgeta(line,tline,'=');
something=1;
something=true;
tptr=tline;
uptr=uline;
......@@ -343,40 +343,40 @@ int Config::Parse()
if(strstr(line,"user="))
{
strgeta(line,tline,'=');
something=1;
something=true;
pp->SetUser(tline);
}
if(strstr(line,"machine="))
{
strgeta(line,tline,'=');
something=1;
something=true;
pp->SetMachine(tline);
}
if(strstr(line,"site="))
{
strgeta(line,tline,'=');
something=1;
something=true;
pp->SetSite(tline);
}
if(strstr(line,"address="))
{
strgeta(line,tline,'=');
something=1;
something=true;
pp->SetAddress(tline);
}
if(strstr(line,"port="))
{
strgeta(line,tline,'=');
something=1;
something=true;
pp->SetPort(atoi(tline));
}
if(strstr(line,"customsdp="))
{
strgeta(line,tline,'=');
something=1;
something=true;
pp->SetCustomSDP(tline);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment