summaryrefslogtreecommitdiffstats
path: root/Documentation/ptp
diff options
context:
space:
mode:
authorMahesh Khanwalkar <maheshkhanwalkar@gmail.com>2016-02-14 01:05:31 +0100
committerJonathan Corbet <corbet@lwn.net>2016-02-17 22:09:43 +0100
commitf0cd147e61f2b840b0687a407c2652687532644e (patch)
treecdb204a675d00c0e6d798685ec578834867aee0b /Documentation/ptp
parentDocumentation: Chinese translation of arm64/silicon-errata.txt (diff)
downloadlinux-f0cd147e61f2b840b0687a407c2652687532644e.tar.xz
linux-f0cd147e61f2b840b0687a407c2652687532644e.zip
Documentation: Fix int/unsigned int comparison
Signed int - unsigned int comparison fixed in mpssd, prctl, ptp, and timers in Documentation. In places where 'int argc' and 'const char **argv' are not used, they are replaced with void Documentation/mic/mpssd/mpssd.c: Fixed comparison in sum_iovec_len and disp_iovec Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c: main signature changed to void, as parameters 'argc' and 'argv' are never used Documentation/prctl/disable-tsc-on-off-stress-test.c: main signature changed to void Documentation/prctl/disable-tsc-test.c: main signature changed to void Documentation/ptp/testptp.c: Sign comparison fix Documentation/timers/hpet_example.c: Sign comparision fix Signed-off-by: Mahesh Khanwalkar <maheshkhanwalkar@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/ptp')
-rw-r--r--Documentation/ptp/testptp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/ptp/testptp.c b/Documentation/ptp/testptp.c
index 6c6247aaa7b9..bee2f143e3aa 100644
--- a/Documentation/ptp/testptp.c
+++ b/Documentation/ptp/testptp.c
@@ -160,7 +160,8 @@ int main(int argc, char *argv[])
char *progname;
- int i, c, cnt, fd;
+ unsigned int i;
+ int c, cnt, fd;
char *device = DEVICE;
clockid_t clkid;