
6 Jan
2012
6 Jan
'12
12:28 a.m.
On Monday 02 January 2012 18:49:11 Christian Daudt wrote:
--- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c
+static int fd_is_mtd(int fd) ...
- rc = ioctl (fd, MEMGETINFO, &mtdinfo);
no space before the "("
- if (rc < 0) {
// Failed MEMGETINFO, not MTD
return 0;
- } else {
// Succeeded, MTD
return 1;
- }
do not use // comments -mike