summaryrefslogtreecommitdiff
path: root/printhex.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-16 16:25:42 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-28 04:31:52 -0200
commite06eddafd5f72f6f0782e37e9617c2e874021038 (patch)
tree972a90ccba9466c6ac0d60b7d9d4576c6e5bcc23 /printhex.c
parentf1a527497c9621428cdb78dd9d37cb846ec10544 (diff)
Compile warning fixes.
Include header with prototypes for signals.c, and change prototypes and definitions to match. This should not have any side effects as function arguments are ignored. Ansify some functions with K&R definitions. printhex.c:fprintfhex() could be changed to a "sane" implementation, but only change was "ansification".
Diffstat (limited to 'printhex.c')
-rw-r--r--printhex.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/printhex.c b/printhex.c
index b411f9e..f14ab8b 100644
--- a/printhex.c
+++ b/printhex.c
@@ -24,7 +24,7 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
******************************************************************************/
-#include <stdio.h>
+#include "xsm.h"
static char *hex_table[] = { /* for printing hex digits */
"00", "01", "02", "03", "04", "05", "06", "07",
@@ -63,12 +63,7 @@ static char *hex_table[] = { /* for printing hex digits */
void
-fprintfhex (fp, len, cp)
-
-register FILE *fp;
-unsigned int len;
-char *cp;
-
+fprintfhex(register FILE *fp, unsigned int len, char *cp)
{
unsigned char *ucp = (unsigned char *) cp;