diff mbox

[U-Boot,4/5] sandbox/fs: Set correct filetype for unknown filetype

Message ID 6013826a47e0495ea81876e9d2167de2@rwthex-w2-b.rwth-ad.de
State Accepted
Commit 2f159402d9ab0dc642759d9eab3b002cde33064d
Headers show

Commit Message

Stefan Brüns Oct. 1, 2016, 6:41 p.m. UTC
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
---
 arch/sandbox/cpu/os.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass Oct. 3, 2016, 9:50 p.m. UTC | #1
Hi Stefan,

On 1 October 2016 at 12:41, Stefan Brüns <stefan.bruens@rwth-aachen.de> wrote:

Please can you add a short commit message?

> Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
> ---
>  arch/sandbox/cpu/os.c | 2 ++
>  1 file changed, 2 insertions(+)

Acked-by: Simon Glass <sjg@chromium.org>

>
> diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
> index 16af3f5..df2bd4c 100644
> --- a/arch/sandbox/cpu/os.c
> +++ b/arch/sandbox/cpu/os.c
> @@ -363,6 +363,8 @@ int os_dirent_ls(const char *dirname, struct os_dirent_node **headp)
>                 case DT_LNK:
>                         next->type = OS_FILET_LNK;
>                         break;
> +               default:
> +                       next->type = OS_FILET_UNKNOWN;
>                 }
>                 next->size = 0;
>                 snprintf(fname, len, "%s/%s", dirname, next->name);
> --
> 2.10.0
>

Regards,
Simon
diff mbox

Patch

diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index 16af3f5..df2bd4c 100644
--- a/arch/sandbox/cpu/os.c
+++ b/arch/sandbox/cpu/os.c
@@ -363,6 +363,8 @@  int os_dirent_ls(const char *dirname, struct os_dirent_node **headp)
 		case DT_LNK:
 			next->type = OS_FILET_LNK;
 			break;
+		default:
+			next->type = OS_FILET_UNKNOWN;
 		}
 		next->size = 0;
 		snprintf(fname, len, "%s/%s", dirname, next->name);