summaryrefslogtreecommitdiff
path: root/cuturl.c
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2016-05-28 09:40:08 +0000
committerepochqwert <epoch@hacking.allowed.org>2016-05-28 09:40:08 +0000
commit6bfda18041dffeac373ad799b22b0aceaaf6039d (patch)
tree118dfbec6ea6187c3e07d7e154ac0e2f16022696 /cuturl.c
parent88579ab91621abc3a9a6f31c132de50510aca777 (diff)
downloaduritools-6bfda18041dffeac373ad799b22b0aceaaf6039d.tar.gz
uritools-6bfda18041dffeac373ad799b22b0aceaaf6039d.zip
fuck if I know. I'm tired. moved the magic stuff to url.c.
Diffstat (limited to 'cuturl.c')
-rw-r--r--cuturl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cuturl.c b/cuturl.c
index b2e7f84..1fd20b2 100644
--- a/cuturl.c
+++ b/cuturl.c
@@ -39,9 +39,7 @@ char *short_opts[]={"s","u","k","d","P","p","q","f"};
int main(int argc,char *argv[]) {
char *name[2];
char *line=0;
- char sport[10];
char args[256];
- struct servent *serv;
int i,j,c=0;
int size=1024;
int status;
@@ -126,6 +124,8 @@ int main(int argc,char *argv[]) {
//let's set them to what'll get printed now...
#ifdef MAGIC
+ magic_and_defaults(&u);
+/*
u.scheme=AorB(u.scheme,AorB(getenv("CUTURL_SCHEME"),"DEFAULT"));
u.username=AorB(u.username,AorB(getenv("CUTURL_USERNAME"),"DEFAULT"));
u.password=AorB(u.password,AorB(getenv("CUTURL_PASSWORD"),"DEFAULT"));
@@ -136,6 +136,7 @@ int main(int argc,char *argv[]) {
u.path=AorB(u.path,AorB(getenv("CUTURL_PATH"),"DEFAULT"));
u.query_string=AorB(u.query_string,AorB(getenv("CUTURL_QUERY_STRING"),"DEFAULT"));
u.fragment_id=AorB(u.fragment_id,AorB(getenv("CUTURL_FRAGMENT_ID"),"DEFAULT"));
+*/
#endif
if((name[0]=getenv("CUTURL__"))) {