Date: Thu, 16 Aug 2007 18:57:00 GMT From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 125228 for review Message-ID: <200708161857.l7GIv0jm006972@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=125228 Change 125228 by csjp@push on 2007/08/16 18:56:44 Fix compilation warning. Spotted by: Eric Hall Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#50 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#50 (text+ko) ==== @@ -32,7 +32,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#49 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#50 $ */ #include <sys/types.h> @@ -3873,14 +3873,14 @@ * zonename size bytes; */ static int -fetch_zonename_tok(tokenstr_t *tok, char *buf, int len) +fetch_zonename_tok(tokenstr_t *tok, u_char *buf, int len) { int err = 0; READ_TOKEN_U_INT16(buf, len, tok->tt.zonename.len, tok->len, err); if (err) return (-1); - SET_PTR(buf, len, tok->tt.zonename.zonename, tok->tt.zonename.len, + SET_PTR((char *)buf, len, tok->tt.zonename.zonename, tok->tt.zonename.len, tok->len, err); if (err) return (-1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708161857.l7GIv0jm006972>