diff options
author | Epoch Qwert <epoch@53flpnlls43fcguy.onion> | 2014-08-25 01:49:50 -0500 |
---|---|---|
committer | Epoch Qwert <epoch@53flpnlls43fcguy.onion> | 2014-08-25 01:49:50 -0500 |
commit | 0c9ea86d2e00ccb13d81ea0623927be86be3adf2 (patch) | |
tree | 76af1e66da6a9b6cb9be795fda858f2473fa478d | |
parent | 3647474523c6112a84dbe7576d005a617dea9b5a (diff) | |
download | segfault-0c9ea86d2e00ccb13d81ea0623927be86be3adf2.tar.gz segfault-0c9ea86d2e00ccb13d81ea0623927be86be3adf2.zip |
fixed the weird use of a?:b; in two places.
-rw-r--r-- | segfault.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |