diff options
author | 2009-11-10 04:34:38 +0000 | |
---|---|---|
committer | 2009-11-10 04:34:38 +0000 | |
commit | b8d947c7931dc328b498cd6f7422c2be33a56ec9 (patch) | |
tree | 5b4f4fb340c75afe985d2272a04c4bef2a4dffbc | |
parent | Set close-on-exec on various descriptors so they don't get leaked to (diff) | |
download | wireguard-openbsd-b8d947c7931dc328b498cd6f7422c2be33a56ec9.tar.xz wireguard-openbsd-b8d947c7931dc328b498cd6f7422c2be33a56ec9.zip |
lint prompted cleanup
-rw-r--r-- | usr.sbin/ztsscale/ztsscale.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ztsscale/ztsscale.c b/usr.sbin/ztsscale/ztsscale.c index b2eff2e9920..917be15cd7b 100644 --- a/usr.sbin/ztsscale/ztsscale.c +++ b/usr.sbin/ztsscale/ztsscale.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ztsscale.c,v 1.14 2007/06/17 10:07:30 robert Exp $ */ +/* $OpenBSD: ztsscale.c,v 1.15 2009/11/10 04:34:38 deraadt Exp $ */ /* * Copyright (c) 2005 Matthieu Herrb @@ -158,7 +158,8 @@ cleanup(void) restore_screen(); wmcoords.samplelen = orawmode; - if (wmcoords.samplelen != -1 && ioctl(mfd, WSMOUSEIO_SCALIBCOORDS, &wmcoords) < 0) + if (wmcoords.samplelen != -1 && + ioctl(mfd, WSMOUSEIO_SCALIBCOORDS, &wmcoords) < 0) err(1, "WSMOUSEIO_SCALIBCOORDS"); close(mfd); @@ -173,12 +174,12 @@ sighandler(int sig) _exit(2); } +/*ARGSUSED*/ int main(int argc, char *argv[]) { int i, x[5], y[5]; double a, a1, a2, b, b1, b2, xerr, yerr; - size_t oldsize; struct ztsscale { int ts_minx; int ts_maxx; |