diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-10-01 02:32:08 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-10-01 02:32:08 +0000 |
commit | 00087c13f0a1ce0076c3caba4ffccc6416ff4c9c (patch) | |
tree | 66f8aa81a14106ae7a8a841a20ee0fadf11fe68e /bin/systrace | |
parent | 44d895a4f0e0d0bba54c64bb34c61b56c36710da (diff) |
Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In one
case, by deleting some useless '& of an array' we also eliminate the need
for the casts which prompted the original lint warnings
ok deraadt@
Diffstat (limited to 'bin/systrace')
-rw-r--r-- | bin/systrace/intercept.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/systrace/intercept.c b/bin/systrace/intercept.c index a8d5620d65d..a06b6f05504 100644 --- a/bin/systrace/intercept.c +++ b/bin/systrace/intercept.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intercept.c,v 1.63 2015/01/16 00:19:12 deraadt Exp $ */ +/* $OpenBSD: intercept.c,v 1.64 2015/10/01 02:32:07 guenther Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -1120,9 +1120,7 @@ loop: return (NULL); } p[0] = '/'; - memcpy(&p[1], path, - /* LINTED We know q > path. */ - q - path); + memcpy(&p[1], path, q - path); p[1 + q - path] = 0; /* |