Commit bc7fff7
committed
mctp-client: use parse_* helpers for argument parsing
We have helpers for EID and net parsing, use those instead of an
explicit stroul(). This means we don't need to carry parse status
outside of individual tag handler blocks.
In doing so, fix a bug where network IDs > 255 are not accepted.
Signed-off-by: Jeremy Kerr <[email protected]>1 parent ce7d759 commit bc7fff7
1 file changed
+10
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
| 215 | + | |
217 | 216 | | |
218 | | - | |
219 | 217 | | |
220 | 218 | | |
221 | 219 | | |
| |||
235 | 233 | | |
236 | 234 | | |
237 | 235 | | |
238 | | - | |
| 236 | + | |
| 237 | + | |
239 | 238 | | |
240 | 239 | | |
241 | 240 | | |
242 | | - | |
243 | | - | |
| 241 | + | |
244 | 242 | | |
245 | | - | |
| 243 | + | |
| 244 | + | |
246 | 245 | | |
247 | | - | |
248 | 246 | | |
249 | 247 | | |
250 | | - | |
| 248 | + | |
| 249 | + | |
251 | 250 | | |
252 | | - | |
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
256 | 254 | | |
257 | | - | |
258 | | - | |
259 | 255 | | |
| 256 | + | |
260 | 257 | | |
261 | 258 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | 259 | | |
266 | 260 | | |
267 | 261 | | |
| |||
0 commit comments