diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-24 22:03:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-24 22:03:37 +0000 |
commit | 2464d9fe2f0b97e88e10956539258e1fa35de108 (patch) | |
tree | 6a6a7d87c467cae9514add75839224a19202438b /nuttx/graphics/nxtk | |
parent | 9c90861d9c85b7ba730ecfe6fcea329ca22f3ee4 (diff) | |
download | px4-nuttx-2464d9fe2f0b97e88e10956539258e1fa35de108.tar.gz px4-nuttx-2464d9fe2f0b97e88e10956539258e1fa35de108.tar.bz2 px4-nuttx-2464d9fe2f0b97e88e10956539258e1fa35de108.zip |
Misc fixes for clean compilation with graphics debug enabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4061 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxtk')
-rw-r--r-- | nuttx/graphics/nxtk/nxtk_gettoolbar.c | 5 | ||||
-rw-r--r-- | nuttx/graphics/nxtk/nxtk_getwindow.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/graphics/nxtk/nxtk_gettoolbar.c b/nuttx/graphics/nxtk/nxtk_gettoolbar.c index 7d2b11840..c5908f53b 100644 --- a/nuttx/graphics/nxtk/nxtk_gettoolbar.c +++ b/nuttx/graphics/nxtk/nxtk_gettoolbar.c @@ -102,10 +102,11 @@ void nxtk_gettoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, struct nxgl_rect_s getrect; #ifdef CONFIG_DEBUG - if (!hwnd || !rect || !dest) + if (!hfwnd || !rect || !dest) { + gvdbg("Invalid parameters\n"); errno = EINVAL; - return ERROR; + return; } #endif diff --git a/nuttx/graphics/nxtk/nxtk_getwindow.c b/nuttx/graphics/nxtk/nxtk_getwindow.c index 88d1d4d0e..f6df2c3ad 100644 --- a/nuttx/graphics/nxtk/nxtk_getwindow.c +++ b/nuttx/graphics/nxtk/nxtk_getwindow.c @@ -102,10 +102,10 @@ void nxtk_getwindow(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, struct nxgl_rect_s getrect; #ifdef CONFIG_DEBUG - if (!hwnd || !rect || !dest) + if (!hfwnd || !rect || !dest) { - errno = EINVAL; - return ERROR; + gvdbg("Invalid parameters\n"); + return; } #endif |