summaryrefslogtreecommitdiff
path: root/segfault.c
diff options
context:
space:
mode:
authorEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-08-25 01:49:50 -0500
committerEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-08-25 01:49:50 -0500
commit0c9ea86d2e00ccb13d81ea0623927be86be3adf2 (patch)
tree76af1e66da6a9b6cb9be795fda858f2473fa478d /segfault.c
parent3647474523c6112a84dbe7576d005a617dea9b5a (diff)
downloadsegfault-0c9ea86d2e00ccb13d81ea0623927be86be3adf2.tar.gz
segfault-0c9ea86d2e00ccb13d81ea0623927be86be3adf2.zip
fixed the weird use of a?:b; in two places.
Diffstat (limited to 'segfault.c')
-rw-r--r--segfault.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/segfault.c b/segfault.c
index 1d439f0..389424c 100644
--- a/segfault.c
+++ b/segfault.c
@@ -1144,8 +1144,8 @@ int main(int argc,char *argv[]) {
if(!pwd) { printf("well, shit. I don't know who I am."); return 0; }
}
for(c=0;c<MAXTAILS;c++) tailf[c].fp=0;
- s=getenv("segserver"); s=s?:SERVER;
- p=getenv("segport"); p=p?:PORT;
+ s=getenv("segserver"); s=s?s:SERVER;
+ p=getenv("segport"); p=p?p:PORT;
printf("connecting to: %s port %s\n",s,p);
fd=ircConnect(getenv("segserver")?getenv("segserver"):SERVER,
getenv("segport")?getenv("segport"):PORT,