X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=zippy.c;h=247240dbf69b525b66635094853601874ee1a895;hb=c538ad128cef9fea034c4c67405cfb51dc2b6ce3;hp=c5c4207dc51a24f05e19e2e03556d8473b854e11;hpb=4e062d14429ed3a3a251c971690bade4c8cba946;p=xboard.git diff --git a/zippy.c b/zippy.c index c5c4207..247240d 100644 --- a/zippy.c +++ b/zippy.c @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -200,7 +200,7 @@ ZippyInit () if (p != NULL) { appData.zippyVariants = p; } - safeStrCpy(first.variants, appData.zippyVariants, sizeof(first.variants)/sizeof(first.variants[0])); + ASSIGN(first.variants, appData.zippyVariants); srandom(time(NULL)); } @@ -315,7 +315,6 @@ Speak (char *how, char *whom) time_t now; char *p; int c, speechlen; - Boolean done; if (strcmp(how, "shout") == 0) { now = time((time_t *) NULL); @@ -346,7 +345,6 @@ Speak (char *how, char *whom) if (c == EOF) continue; break; } - done = FALSE; /* Don't use ics_prefix; we need to let FICS expand the alias i -> it, but use the real command "i" on ICC */ @@ -659,7 +657,6 @@ ZippyConverse(char *buf, int *i) /* Channel tells */ oldi = *i; if (looking_at(buf, i, "*(*: *")) { - char *player; char *channel; if (star_match[0][0] == NULLCHAR || strchr(star_match[0], ' ') || @@ -669,7 +666,6 @@ ZippyConverse(char *buf, int *i) return FALSE; } if (appData.zippyTalk) { - player = StripHighlightAndTitle(star_match[0]); channel = strrchr(star_match[1], '('); if (channel == NULL) { channel = star_match[1]; @@ -774,16 +770,12 @@ void ZippyHandleChallenge (char *srated, char *swild, char *sbase, char *sincrement, char *opponent) { char buf[MSG_SIZ]; - int base, increment, i=0; - char rated; + int i=0; VariantClass variant; char *varname; - rated = srated[0]; variant = StringToVariant(swild); varname = VariantName(variant); - base = atoi(sbase); - increment = atoi(sincrement); /* [DM] If icsAnalyzeEngine active we don't accept automatic games */ if (appData.icsActive && appData.icsEngineAnalyze) return;