]> www.infradead.org Git - mtd-utils.git/commit
tests: jittertest: fix set of compiler warnings
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>
Tue, 5 Apr 2011 14:32:29 +0000 (17:32 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 5 Apr 2011 14:41:02 +0000 (17:41 +0300)
commita70811466de2c4c0c3a538e5e04a4dd1a8fbcc03
treeb82457da57879384ef276c5131bfae6b3d7cf92d
parent1bf8fb86ef192bc182a0c7cecdfc0792d6555fda
tests: jittertest: fix set of compiler warnings

- time() was used without prototype.
- the return value of read() and write() wasn't checked
- classificator in printf() was wrong for argument of size_t type

Don't continue to read the /proc/profile in case when write was failed.

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/jittertest/JitterTest.c