summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_scanf.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-08-24 00:56:50 +0000
committerbde <bde@FreeBSD.org>1999-08-24 00:56:50 +0000
commitfaf95163e9f85fe6efd41c7b0a56672c11a621a2 (patch)
tree2d3b666b5cac091c67205d14119b379e2b7a16f0 /sys/kern/subr_scanf.c
parentc832c03c3c4b357f9ff6827351df1e89d60a083c (diff)
downloadFreeBSD-src-faf95163e9f85fe6efd41c7b0a56672c11a621a2.zip
FreeBSD-src-faf95163e9f85fe6efd41c7b0a56672c11a621a2.tar.gz
Cast pointers to uintptr_t instead of casting them to u_long, and/or vice
versa. Cosmetic.
Diffstat (limited to 'sys/kern/subr_scanf.c')
-rw-r--r--sys/kern/subr_scanf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_scanf.c b/sys/kern/subr_scanf.c
index 6d65d98..8b1f740 100644
--- a/sys/kern/subr_scanf.c
+++ b/sys/kern/subr_scanf.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: subr_scanf.c,v 1.4 1999/01/29 08:09:32 dillon Exp $
+ * $Id: subr_scanf.c,v 1.5 1999/02/14 20:58:21 dillon Exp $
* From: Id: vfscanf.c,v 1.13 1998/09/25 12:20:27 obrien Exp
*/
@@ -517,7 +517,7 @@ literal:
res = (*ccfn)(buf, (const char **)NULL, base);
if (flags & POINTER)
*va_arg(ap, void **) =
- (void *)(u_long)res;
+ (void *)(uintptr_t)res;
else if (flags & SHORT)
*va_arg(ap, short *) = res;
else if (flags & LONG)
OpenPOWER on IntegriCloud