All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2] Fix compiler warning in imximage.c due to getline prototype
@ 2010-01-27 16:16 Kumar Gala
  2010-01-27 19:10 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2010-01-27 16:16 UTC (permalink / raw)
  To: u-boot

imximage.c: In function 'imximage_parse_cfg_file':
imximage.c:142: warning: implicit declaration of function 'getline'

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
* Moved _GNU_SOURCE define into imximage.c per Mike F. suggestion

 tools/imximage.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tools/imximage.c b/tools/imximage.c
index c1fdafb..59923ff 100644
--- a/tools/imximage.c
+++ b/tools/imximage.c
@@ -25,6 +25,9 @@
  * MA 02111-1307 USA
  */
 
+/* Required to obtain the getline prototype from stdio.h */
+#define _GNU_SOURCE
+
 #include "mkimage.h"
 #include <image.h>
 #include "imximage.h"
-- 
1.6.0.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH v2] Fix compiler warning in imximage.c due to getline prototype
  2010-01-27 16:16 [U-Boot] [PATCH v2] Fix compiler warning in imximage.c due to getline prototype Kumar Gala
@ 2010-01-27 19:10 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2010-01-27 19:10 UTC (permalink / raw)
  To: u-boot

Dear Kumar Gala,

In message <1264609016-21475-1-git-send-email-galak@kernel.crashing.org> you wrote:
> imximage.c: In function 'imximage_parse_cfg_file':
> imximage.c:142: warning: implicit declaration of function 'getline'
> 
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> * Moved _GNU_SOURCE define into imximage.c per Mike F. suggestion
> 
>  tools/imximage.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The universe contains any amount of horrible ways  to  be  woken  up,
such as the noise of the mob breaking down the front door, the scream
of fire engines, or the realization that today is the Monday which on
Friday night was a comfortably long way off.
                                 - Terry Pratchett, _Moving Pictures_

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-27 19:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-27 16:16 [U-Boot] [PATCH v2] Fix compiler warning in imximage.c due to getline prototype Kumar Gala
2010-01-27 19:10 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.