Commit 0efd70c
committed
ext/fileinfo: Use magic_setflags() directly
The only way this function returns -1 is if:
> magic_setflags() returns -1 on systems that don't support utime(3), or utimes(2) when MAGIC_PRESERVE_ATIME is set.
This is extremely unlikely and if this would happen we currently have a return type violation.1 parent 24fbe2d commit 0efd70c
2 files changed
+4
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 97 | | |
106 | 98 | | |
107 | 99 | | |
| |||
276 | 268 | | |
277 | 269 | | |
278 | 270 | | |
279 | | - | |
| 271 | + | |
280 | 272 | | |
281 | 273 | | |
282 | 274 | | |
| |||
337 | 329 | | |
338 | 330 | | |
339 | 331 | | |
340 | | - | |
| 332 | + | |
341 | 333 | | |
342 | 334 | | |
343 | 335 | | |
| |||
436 | 428 | | |
437 | 429 | | |
438 | 430 | | |
439 | | - | |
| 431 | + | |
440 | 432 | | |
441 | | - | |
442 | 433 | | |
443 | 434 | | |
444 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
0 commit comments