Commit 3a742b76431e3dd2ee046aa56317ad36a903db30
1 parent
49918a75
Update old fashioned function prototypes.
Signed-off-by: Stefan Weil <weil@mail.berlios.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5511 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
5 additions
and
15 deletions
disas.c
... | ... | @@ -14,11 +14,8 @@ struct syminfo *syminfos = NULL; |
14 | 14 | /* Get LENGTH bytes from info's buffer, at target address memaddr. |
15 | 15 | Transfer them to myaddr. */ |
16 | 16 | int |
17 | -buffer_read_memory (memaddr, myaddr, length, info) | |
18 | - bfd_vma memaddr; | |
19 | - bfd_byte *myaddr; | |
20 | - int length; | |
21 | - struct disassemble_info *info; | |
17 | +buffer_read_memory(bfd_vma memaddr, bfd_byte *myaddr, int length, | |
18 | + struct disassemble_info *info) | |
22 | 19 | { |
23 | 20 | if (memaddr < info->buffer_vma |
24 | 21 | || memaddr + length > info->buffer_vma + info->buffer_length) |
... | ... | @@ -46,10 +43,7 @@ target_read_memory (bfd_vma memaddr, |
46 | 43 | /* Print an error message. We can assume that this is in response to |
47 | 44 | an error return from buffer_read_memory. */ |
48 | 45 | void |
49 | -perror_memory (status, memaddr, info) | |
50 | - int status; | |
51 | - bfd_vma memaddr; | |
52 | - struct disassemble_info *info; | |
46 | +perror_memory (int status, bfd_vma memaddr, struct disassemble_info *info) | |
53 | 47 | { |
54 | 48 | if (status != EIO) |
55 | 49 | /* Can't happen. */ |
... | ... | @@ -69,9 +63,7 @@ perror_memory (status, memaddr, info) |
69 | 63 | addresses). */ |
70 | 64 | |
71 | 65 | void |
72 | -generic_print_address (addr, info) | |
73 | - bfd_vma addr; | |
74 | - struct disassemble_info *info; | |
66 | +generic_print_address (bfd_vma addr, struct disassemble_info *info) | |
75 | 67 | { |
76 | 68 | (*info->fprintf_func) (info->stream, "0x%" PRIx64, addr); |
77 | 69 | } |
... | ... | @@ -79,9 +71,7 @@ generic_print_address (addr, info) |
79 | 71 | /* Just return the given address. */ |
80 | 72 | |
81 | 73 | int |
82 | -generic_symbol_at_address (addr, info) | |
83 | - bfd_vma addr; | |
84 | - struct disassemble_info * info; | |
74 | +generic_symbol_at_address (bfd_vma addr, struct disassemble_info *info) | |
85 | 75 | { |
86 | 76 | return 1; |
87 | 77 | } | ... | ... |