summaryrefslogtreecommitdiff
path: root/opcodes/z8kgen.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-07-01 11:16:33 +0000
committerNick Clifton <nickc@redhat.com>2005-07-01 11:16:33 +0000
commit3dab4ae989818bdf66191ec925eb7853d2540d82 (patch)
tree3bb738a6b161ddff067f17a6999294b9721c58aa /opcodes/z8kgen.c
parent110107edc3240d21acd2b8d4f55090eeb4c9972e (diff)
downloadbinutils-redhat-3dab4ae989818bdf66191ec925eb7853d2540d82.tar.gz
Update function declarations to ISO C90 formatting
Diffstat (limited to 'opcodes/z8kgen.c')
-rw-r--r--opcodes/z8kgen.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/opcodes/z8kgen.c b/opcodes/z8kgen.c
index 5adbfecb5f..9970100a59 100644
--- a/opcodes/z8kgen.c
+++ b/opcodes/z8kgen.c
@@ -1,4 +1,4 @@
-/* Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+/* Copyright 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -904,7 +904,7 @@ static void
internal (void)
{
int c = count ();
- struct op *new = (struct op *) xmalloc (sizeof (struct op) * c);
+ struct op *new = xmalloc (sizeof (struct op) * c);
struct op *p = opt;
memcpy (new, p, c * sizeof (struct op));
@@ -960,12 +960,12 @@ gas (void)
struct op *p = opt;
int idx = -1;
char *oldname = "";
- struct op *new = (struct op *) xmalloc (sizeof (struct op) * c);
+ struct op *new = xmalloc (sizeof (struct op) * c);
memcpy (new, p, c * sizeof (struct op));
/* Sort all names in table alphabetically. */
- qsort (new, c, sizeof (struct op), (int (*)(const void *, const void *))func);
+ qsort (new, c, sizeof (struct op), (int (*)(const void *, const void *)) func);
printf ("/* DO NOT EDIT! -*- buffer-read-only: t -*-\n");
printf (" This file is automatically generated by z8kgen. */\n\n");
@@ -1251,7 +1251,7 @@ gas (void)
printf ("#endif\n");
printf (" const char *name;\n");
printf (" unsigned char opcode;\n");
- printf (" void (*func) PARAMS ((void));\n");
+ printf (" void (*func) (void);\n");
printf (" unsigned int arg_info[4];\n");
printf (" unsigned int byte_info[%d];\n", BYTE_INFO_LEN);
printf (" int noperands;\n");