PERFORCE change 124859 for review

Constantine A. Murenin cnst at FreeBSD.org
Tue Aug 7 17:34:18 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=124859

Change 124859 by cnst at 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);


More information about the p4-projects mailing list