.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | | - * This program is free software; you can redistribute it and/or modify |
---|
3 | | - * it under the terms of the GNU General Public License as published by |
---|
4 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
5 | | - * (at your option) any later version. |
---|
6 | | - * |
---|
7 | | - * This program is distributed in the hope that it will be useful, |
---|
8 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
9 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
10 | | - * GNU General Public License for more details. |
---|
11 | 3 | * |
---|
12 | 4 | * Copyright (C) IBM Corporation, 2009 |
---|
13 | 5 | */ |
---|
.. | .. |
---|
119 | 111 | int main(int argc, char **argv) |
---|
120 | 112 | { |
---|
121 | 113 | char line[BUFSIZE], sym[BUFSIZE] = "<unknown>"; |
---|
122 | | - unsigned char insn_buf[16]; |
---|
| 114 | + unsigned char insn_buff[16]; |
---|
123 | 115 | struct insn insn; |
---|
124 | 116 | int insns = 0; |
---|
125 | 117 | int warnings = 0; |
---|
.. | .. |
---|
138 | 130 | } |
---|
139 | 131 | |
---|
140 | 132 | insns++; |
---|
141 | | - memset(insn_buf, 0, 16); |
---|
| 133 | + memset(insn_buff, 0, 16); |
---|
142 | 134 | strcpy(copy, line); |
---|
143 | 135 | tab1 = strchr(copy, '\t'); |
---|
144 | 136 | if (!tab1) |
---|
.. | .. |
---|
151 | 143 | *tab2 = '\0'; /* Characters beyond tab2 aren't examined */ |
---|
152 | 144 | while (s < tab2) { |
---|
153 | 145 | if (sscanf(s, "%x", &b) == 1) { |
---|
154 | | - insn_buf[nb++] = (unsigned char) b; |
---|
| 146 | + insn_buff[nb++] = (unsigned char) b; |
---|
155 | 147 | s += 3; |
---|
156 | 148 | } else |
---|
157 | 149 | break; |
---|
158 | 150 | } |
---|
159 | 151 | /* Decode an instruction */ |
---|
160 | | - insn_init(&insn, insn_buf, sizeof(insn_buf), x86_64); |
---|
| 152 | + insn_init(&insn, insn_buff, sizeof(insn_buff), x86_64); |
---|
161 | 153 | insn_get_length(&insn); |
---|
162 | 154 | if (insn.length != nb) { |
---|
163 | 155 | warnings++; |
---|