PERFORCE change 90073 for review
Robert Watson
rwatson at FreeBSD.org
Sat Jan 21 13:25:07 GMT 2006
http://perforce.freebsd.org/chv.cgi?CH=90073
Change 90073 by rwatson at 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);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list