util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] text-utils/hexsyntax.c: use c.h
@ 2012-05-29  7:51 Andreas Bießmann
  2012-06-04 11:01 ` [PATCH v2] text-utils/hexsyntax.c: fix for missing program_invocation_short_name Andreas Bießmann
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Bießmann @ 2012-05-29  7:51 UTC (permalink / raw)
  To: util-linux; +Cc: Andreas Bießmann

This patch hfixes following error for me:
---8<---
hexsyntax.c: In function 'newsyntax':
hexsyntax.c:115: error: 'program_invocation_short_name' undeclared (first use in this function)
hexsyntax.c:115: error: (Each undeclared identifier is reported only once
hexsyntax.c:115: error: for each function it appears in.)
--->8---

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
---
 text-utils/hexsyntax.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/text-utils/hexsyntax.c b/text-utils/hexsyntax.c
index 5f3b733..21cc55e 100644
--- a/text-utils/hexsyntax.c
+++ b/text-utils/hexsyntax.c
@@ -45,6 +45,7 @@
 #include "hexdump.h"
 #include "nls.h"
 #include "strutils.h"
+#include "c.h"
 
 off_t skip;				/* bytes to skip */
 
-- 
1.7.10


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

* [PATCH v2] text-utils/hexsyntax.c: fix for missing program_invocation_short_name
  2012-05-29  7:51 [PATCH] text-utils/hexsyntax.c: use c.h Andreas Bießmann
@ 2012-06-04 11:01 ` Andreas Bießmann
  2012-06-05 12:32   ` Karel Zak
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Bießmann @ 2012-06-04 11:01 UTC (permalink / raw)
  To: util-linux; +Cc: Andreas Bießmann

Some libc do not expose program_invocation_short_name. Therefore util-linux
comes with helpers in 'c.h'. Use the 'c.h' in hexsyntax.c where it was missed.

This patch fixes following error for me:
---8<---
hexsyntax.c: In function 'newsyntax':
hexsyntax.c:115: error: 'program_invocation_short_name' undeclared (first use in this function)
hexsyntax.c:115: error: (Each undeclared identifier is reported only once
hexsyntax.c:115: error: for each function it appears in.)
--->8---

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
---
since v1:
 clearify commit message

 text-utils/hexsyntax.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/text-utils/hexsyntax.c b/text-utils/hexsyntax.c
index 5f3b733..21cc55e 100644
--- a/text-utils/hexsyntax.c
+++ b/text-utils/hexsyntax.c
@@ -45,6 +45,7 @@
 #include "hexdump.h"
 #include "nls.h"
 #include "strutils.h"
+#include "c.h"
 
 off_t skip;				/* bytes to skip */
 
-- 
1.7.10


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

* Re: [PATCH v2] text-utils/hexsyntax.c: fix for missing program_invocation_short_name
  2012-06-04 11:01 ` [PATCH v2] text-utils/hexsyntax.c: fix for missing program_invocation_short_name Andreas Bießmann
@ 2012-06-05 12:32   ` Karel Zak
  0 siblings, 0 replies; 3+ messages in thread
From: Karel Zak @ 2012-06-05 12:32 UTC (permalink / raw)
  To: Andreas Bießmann; +Cc: util-linux

On Mon, Jun 04, 2012 at 01:01:09PM +0200, Andreas Bießmann wrote:
>  text-utils/hexsyntax.c |    1 +
>  1 file changed, 1 insertion(+)

 Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

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

end of thread, other threads:[~2012-06-05 12:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29  7:51 [PATCH] text-utils/hexsyntax.c: use c.h Andreas Bießmann
2012-06-04 11:01 ` [PATCH v2] text-utils/hexsyntax.c: fix for missing program_invocation_short_name Andreas Bießmann
2012-06-05 12:32   ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).