Minor update to avoid warning

Fix typo

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
This commit is contained in:
Frederic.Pillon 2017-06-20 09:32:43 +02:00
parent 68b6a77077
commit e82d0f26ba
3 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View file

@ -5,6 +5,7 @@
#include <mntent.h>
#include <unistd.h>
#include <errno.h>
#include <ctype.h>
static char *input_path = NULL;
static char *output_path = NULL;
@ -87,7 +88,7 @@ int main(int argc, char *argv[])
if (strlen(input_path) && strlen(output_dev))
{
/* get the mounted devives list */
/* get the mounted devices list */
aFile = setmntent("/proc/mounts", "r");
if (aFile == NULL) {
perror("setmntent");
@ -141,7 +142,7 @@ int main(int argc, char *argv[])
ret = system(cmd);
} else {
printf("%s not found. please ensure the device is correctly connected\n",
printf("%s not found. Please ensure the device is correctly connected\n",
output_dev);
ret = ENODEV;
}