From: Russ Allbery Date: Tue, 21 Nov 2006 00:06:57 +0000 (+0000) Subject: One more ThisCell simplification (oo, look at the pretty bikeshed). X-Git-Tag: debian/1.4.2-3~3 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2588b5e68df7aa11d03d03534ddc1da3bf4c6cb0;p=packages%2Fo%2Fopenafs.git One more ThisCell simplification (oo, look at the pretty bikeshed). --- diff --git a/src/auth/cellconfig.c b/src/auth/cellconfig.c index c7877a3f9..9749e8591 100644 --- a/src/auth/cellconfig.c +++ b/src/auth/cellconfig.c @@ -489,9 +489,6 @@ GetCellUnix(struct afsconf_dir *adir) rc = fgets(tbuffer, 256, fp); fclose(fp); - p = strchr(tbuffer, '\n'); - if (p) - *p = '\0'; while (*tbuffer != '\0' && isspace(*tbuffer)) tbuffer++; p = tbuffer + 1;