Date: Wed, 8 Aug 2007 00:34:17 GMT From: "Constantine A. Murenin" <cnst@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124859 for review Message-ID: <200708080034.l780YHde054257@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124859 Change 124859 by cnst@dale on 2007/08/08 00:33:23 since we have changed 'i' from 'int' to 'char' a while ago, a change in name from 'i' to 'c' makes it look a bit nicer Affected files ... .. //depot/projects/soc2007/cnst-sensors/sys.kern/kern_sysctl.c#9 edit Differences ... ==== //depot/projects/soc2007/cnst-sensors/sys.kern/kern_sysctl.c#9 (text+ko) ==== @@ -657,7 +657,7 @@ struct sysctl_oid *oidp; struct sysctl_oid_list *lsp = &sysctl__children; char *p; - char i; + char c; if (name[0] == '\0') return (ENOENT); @@ -670,8 +670,8 @@ for (p = name; *p != '\0' && *p != '.'; p++) ; - i = *p; - if (i == '.') + c = *p; + if (c == '.') *p = '\0'; oidp = SLIST_FIRST(lsp); @@ -684,7 +684,7 @@ *oid++ = oidp->oid_number; (*len)++; - if (i == '\0') { + if (c == '\0') { if (oidpp) *oidpp = oidp; return (0); @@ -701,8 +701,8 @@ name = p + 1; for (p = name; *p != '\0' && *p != '.'; p++) ; - i = *p; - if (i == '.') + c = *p; + if (c == '.') *p = '\0'; } return (ENOENT);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708080034.l780YHde054257>