Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 2006 13:25:07 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 90073 for review
Message-ID:  <200601211325.k0LDP7JA081073@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90073

Change 90073 by rwatson@rwatson_sesame on 2006/01/21 13:24:29

	More compact and readable representations of size addition.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#26 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#26 (text+ko) ====

@@ -86,8 +86,8 @@
 	textlen = strlen(text);
 	textlen += 1;
 
-	GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_char) +
-	    sizeof(u_int32_t) + sizeof(u_int16_t) + textlen);
+	GET_TOKEN_AREA(t, dptr, 2 * sizeof(u_char) + sizeof(u_int32_t) +
+	    sizeof(u_int16_t) + textlen);
 	if (t == NULL)
 		return (NULL);
 
@@ -111,8 +111,8 @@
 	textlen = strlen(text);
 	textlen += 1;
 
-	GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_char) +
-	    sizeof(u_int64_t) + sizeof(u_int16_t) + textlen);
+	GET_TOKEN_AREA(t, dptr, 2 * sizeof(u_char) + sizeof(u_int64_t) +
+	    sizeof(u_int16_t) + textlen);
 	if (t == NULL)
 		return (NULL);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601211325.k0LDP7JA081073>