X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=usystem.c;h=bab13030237cf0a5a9fcbe45e685898c3aa4d6ec;hb=961180c518bc7939a4b35dcb9f651176a6141e48;hp=a24d04ff049865493176cb08232c5ba65daee2bc;hpb=14bd89bc510fb6ff864b235fbac39044079f131f;p=xboard.git diff --git a/usystem.c b/usystem.c index a24d04f..bab1303 100644 --- a/usystem.c +++ b/usystem.c @@ -170,6 +170,8 @@ extern char *getenv(); # define N_(s) s #endif +static int get_term_width P(()); + static char *cnames[9] = { "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white" }; TextColors textColors[(int)NColorClasses]; @@ -710,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 @@ -734,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 @@ -751,7 +754,7 @@ ResetFrontEnd () } #include -int +static int get_term_width () { int fd, default_width;