Module Name: src Committed By: christos Date: Mon Jul 16 01:04:47 UTC 2018
Modified Files: src/usr.sbin/tpctl: main.c Log Message: cast through intptr_t To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/tpctl/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/tpctl/main.c diff -u src/usr.sbin/tpctl/main.c:1.6 src/usr.sbin/tpctl/main.c:1.7 --- src/usr.sbin/tpctl/main.c:1.6 Fri Nov 29 18:01:05 2013 +++ src/usr.sbin/tpctl/main.c Sun Jul 15 21:04:47 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.6 2013/11/29 23:01:05 joerg Exp $ */ +/* $NetBSD: main.c,v 1.7 2018/07/16 01:04:47 christos Exp $ */ /*- * Copyright (c) 2002 TAKEMRUA Shin @@ -49,7 +49,7 @@ #ifndef lint #include <sys/cdefs.h> -__RCSID("$NetBSD: main.c,v 1.6 2013/11/29 23:01:05 joerg Exp $"); +__RCSID("$NetBSD: main.c,v 1.7 2018/07/16 01:04:47 christos Exp $"); #endif /* not lint */ void load_data(const char *, struct tpctl_data *); @@ -380,7 +380,7 @@ drawcross(struct fb *fb, int x, int y, i int check_esc(void *data) { - int fd = (int)data; + int fd = (int)(intptr_t)data; int flg, n, error; char buf[1]; struct termios tm, raw;