X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=usystem.c;fp=usystem.c;h=bab13030237cf0a5a9fcbe45e685898c3aa4d6ec;hb=8baea05c6e9e63f8b1b57891b67b5ac0e1961b81;hp=d2571dff84bea9672e4541e232ccb099a6a52185;hpb=50ffaff1de1b05f1bf76dd842e734eff2974afd4;p=xboard.git diff --git a/usystem.c b/usystem.c index d2571df..bab1303 100644 --- a/usystem.c +++ b/usystem.c @@ -712,7 +712,7 @@ OutputToProcessDelayed (ProcRef pr, char *message, int count, int *outError, lon return outCount; } -void +int ICSInitScript () { /* try to open the icsLogon script, either in the location given @@ -736,12 +736,13 @@ ICSInitScript () } } - if (f != NULL) + if (f != NULL) { ProcessICSInitScript(f); - else + return TRUE; + } else printf("Warning: Couldn't open icsLogon file (checked %s and %s).\n", appData.icsLogon, buf); - return; + return FALSE; } void