PERFORCE change 103950 for review
John Birrell
jb at FreeBSD.org
Tue Aug 15 02:27:44 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103950
Change 103950 by jb at jb_freebsd2 on 2006/08/15 02:26:59
Fix compiler warnings.
Affected files ...
.. //depot/projects/dtrace/src/sys/contrib/opensolaris/common/ctf/ctf_types.c#2 edit
Differences ...
==== //depot/projects/dtrace/src/sys/contrib/opensolaris/common/ctf/ctf_types.c#2 (text) ====
@@ -309,7 +309,7 @@
ctf_type_name(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len)
{
ssize_t rv = ctf_type_lname(fp, type, buf, len);
- return (rv >= 0 && rv < len ? buf : NULL);
+ return (rv >= 0 && rv < (ssize_t) len ? buf : NULL);
}
/*
@@ -368,7 +368,7 @@
ssize_t
ctf_type_align(ctf_file_t *fp, ctf_id_t type)
{
- const ctf_type_t *tp;
+ ctf_type_t *tp;
ctf_arinfo_t r;
if ((type = ctf_type_resolve(fp, type)) == CTF_ERR)
@@ -391,7 +391,7 @@
case CTF_K_UNION: {
uint_t n = LCTF_INFO_VLEN(fp, tp->ctt_info);
ssize_t size, increment;
- size_t align = 0;
+ ssize_t align = 0;
const void *vmp;
(void) ctf_get_ctt_size(fp, tp, &size, &increment);
More information about the p4-projects
mailing list