summaryrefslogtreecommitdiff
path: root/misc-utils/docfdisk.c
Commit message (Collapse)AuthorAgeFilesLines
* misc-utils: initialize "ip" in docfdisk to NULLDavid Oberhollenzer2017-10-051-1/+1
| | | | | | | | | | | | Technically it is initializied in the for loop right before being used. From the conditional above, we know that the for loop is executed at least once and the variable is always initialized, but gcc doesn't appear to perform the same reasoning. This patch adds an initialization of the variable for the sake of making the compiler happy. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
* Eliminate warnings about missing prototypesDavid Oberhollenzer2017-06-281-1/+1
| | | | | | | | | This patch eliminates warnings generated by the -Wmissing-prototypes option. With this flag set, we are now forced to have prototypes for all global, exported functions, that have to be made visible to the definitions and we are forced to mark all local functions as static. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
* common: Fix 'unchecked return code' warningsBoris Brezillon2016-12-061-1/+5
| | | | | | | | | | | Several tools are simply not checking return code of functions marked with 'warn_unused_result'. Provide wrappers for the read/write functions to avoid patching old code and providing proper error handling. Fix the remaining ones (calls to fgets() and system()). Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
* mtd-utils: Restructure the mtd-utils source.Dongsheng Yang2015-11-111-0/+318
* There is no code modification in this commit, only moving * the files to proper place. The user tools looks a little messy as we place almost the all tools in the root directory of mtd-utils. To make it more clear, I propose to introduce the following structure for our source code. mtd-utils/ |-- lib |-- include |-- misc-utils |-- jffsX-utils |-- nand-utils |-- nor-utils |-- ubi-utils |-- ubifs-utils `-- tests Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>