Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9657 → Rev 9658

/programs/network/whois/Tupfile.lua
1,11 → 1,10
if tup.getconfig("NO_TCC") ~= "" then return end
if tup.getconfig("HELPERDIR") == ""
then
HELPERDIR = "../../../programs"
end
tup.include(HELPERDIR .. "/use_tcc.lua")
 
TCC="kos32-tcc"
LIBS = "-lnetwork"
 
CFLAGS = "-I../../develop/ktcc/trunk/libc.obj/include"
LDFAGS = "-nostdlib -L../../develop/ktcc/trunk/bin/lib ../../develop/ktcc/trunk/bin/lib/crt0.o"
 
LIBS = "-ltcc -lnetwork -lc.obj"
 
COMMAND=string.format("%s %s %s %s %s", TCC, CFLAGS, LDFAGS, "%f -o %o", LIBS)
tup.rule("whois.c", COMMAND .. tup.getconfig("KPACK_CMD"), "whois")
link_tcc("whois.c", "whois");
/programs/network/whois/whois.c
5,8 → 5,6
*/
 
#include <errno.h>
int errno;
 
#include <sys/ksys.h>
#include <stdio.h>
#include <string.h>
41,7 → 39,6
 
int main(int argc , char *argv[])
{
networklib_init();
char *domain , *data = NULL;
int f_flag=0;
 
60,7 → 57,7
exit(0);
}
if(out==stdout){
con_init_opt(-1,-1,-1,-1, "Whois");
(*con_init_opt)(-1,-1,-1,-1, "Whois");
}
get_whois_data(domain , &data);
exit(0);