X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=usystem.c;h=bab13030237cf0a5a9fcbe45e685898c3aa4d6ec;hb=961180c518bc7939a4b35dcb9f651176a6141e48;hp=d2571dff84bea9672e4541e232ccb099a6a52185;hpb=ebbd3101235b8a04c34b30eb9a037bb6bae71123;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