From c5ec7c478098273586b7a5716e30dc82c1e6aba5 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 3 Apr 2011 18:42:33 +0000 Subject: Pass __KERNEL__ define (or not) to all makes to handle small differences in user-/kernel-builds git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3459 42af7a65-404d-4744-a932-0658087f49c3 --- apps/namedapp/exec_namedapp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/namedapp') diff --git a/apps/namedapp/exec_namedapp.c b/apps/namedapp/exec_namedapp.c index efd6549f8..2fc01482f 100644 --- a/apps/namedapp/exec_namedapp.c +++ b/apps/namedapp/exec_namedapp.c @@ -88,8 +88,8 @@ int namedapp_isavail(FAR const char *appname) } } - errno = ENOENT; - return -1; + set_errno(ENOENT); + return ERROR; } int exec_namedapp(FAR const char *appname, FAR const char *argv[]) -- cgit v1.2.3