Print

Print


@abh3 haha, well, it's GCC making sure people don't miss things unintentionally - still compiles the same. Maybe this is even nicer for readability?:

// Set all other static values
//
   noids  = Parms.oidsOK == 0;
   if (Parms.Dflttl >  0) dflTTL = Parms.Dflttl;
   if (Parms.Maxttl >  0) maxTTL = Parms.Maxttl;
   if (Parms.Logok  >= 0) LogOK  = Parms.Logok;
   if (Parms.Strm   >  0) tcpSTRM= Parms.Strm;
   if (Parms.SMax   >  0) tcpSMax= Parms.SMax;
   if (Parms.Xmax   >  0) xfrMax = Parms.Xmax;
   if (Parms.Grab   <  0) errMon = Parms.Grab;
   if (Parms.xEcho  >= 0) doEcho = Parms.xEcho != 0;
   if (Parms.autoRM >= 0) autoRM = Parms.autoRM != 0;


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"PERSON","message":"@kgizdov in #961: @abh3 haha, well, it's GCC making sure people don't miss things unintentionally - still compiles the same. Maybe this is even nicer for readability?:\r\n```c++\r\n// Set all other static values\r\n//\r\n noids = Parms.oidsOK == 0;\r\n if (Parms.Dflttl \u003e 0) dflTTL = Parms.Dflttl;\r\n if (Parms.Maxttl \u003e 0) maxTTL = Parms.Maxttl;\r\n if (Parms.Logok \u003e= 0) LogOK = Parms.Logok;\r\n if (Parms.Strm \u003e 0) tcpSTRM= Parms.Strm;\r\n if (Parms.SMax \u003e 0) tcpSMax= Parms.SMax;\r\n if (Parms.Xmax \u003e 0) xfrMax = Parms.Xmax;\r\n if (Parms.Grab \u003c 0) errMon = Parms.Grab;\r\n if (Parms.xEcho \u003e= 0) doEcho = Parms.xEcho != 0;\r\n if (Parms.autoRM \u003e= 0) autoRM = Parms.autoRM != 0;\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/961#issuecomment-483228038"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/961#issuecomment-483228038", "url": "https://github.com/xrootd/xrootd/issues/961#issuecomment-483228038", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1