angler-fishThe Vulnerability History Project

coccinelle: make use of SYNTHETIC_ERRNO

      Ideally, coccinelle would strip unnecessary braces too. But I do not see any
option in coccinelle for this, so instead, I edited the patch text using
search&replace to remove the braces. Unfortunately this is not fully automatic,
in particular it didn't deal well with if-else-if-else blocks and ifdefs, so
there is an increased likelikehood be some bugs in such spots.

I also removed part of the patch that coccinelle generated for udev, where we
returns -1 for failure. This should be fixed independently.
    
commit baaa35ad706419ae5aacc11d2bece5bd8b73ee42
-35
+4 -4
+22 -17
+24 -19
+4 -4
+5 -4
+4 -6
+2 -2
+2 -1
+8 -8
+8 -6
+28 -26
+21 -20
+164 -133
+20 -17
+4 -3
+16 -15
+4 -3
+4 -4
+4 -4
+34 -27
+20 -18
+4 -3
+4 -3
+4 -4
+21 -19
+16 -12
+8 -7
+14 -12
+4 -3
+10 -8
+4 -4
+12 -10
+36 -27
+24 -18
+4 -3
+4 -3
+8 -6
+4 -3
+8 -6
+28 -18
+4 -3
+4 -3
+26 -20
+102 -76
+4 -3
+76 -63
+6 -4
+4 -3
+20 -21
+175 -147
+22 -18
+20 -16
+4 -4
+23 -23
+45 -37
+5 -7
+8 -8
+8 -8
+4 -3
+4 -3
+16 -13
+4 -4
+4 -4
+4 -3
+8 -8
+4 -4
+8 -6
+4 -3
+35 -27
+55 -44
+8 -6
+2 -2
+9 -9
+40 -30
+214 -163
+5 -4
+4 -3
+2 -2
+16 -12
+4 -3
+12 -9
+4 -3
+20 -17
+81 -65
+4 -4
+4 -4
+9 -8
+4 -4
+4 -6
+2 -3
+8 -8
+12 -9
+4 -3
+56 -43
+8 -7
+46 -42
+5 -3
+4 -3
+4 -4
+4 -3
+12 -12
+8 -7
+17 -16
+28 -21
+4 -4
+4 -4
+2 -2
+8 -6
+21 -17
+16 -12
+2 -2
+4 -3
+99 -84
+16 -13
+8 -6
+4 -3
+52 -47
+20 -15
+16 -12
+4 -3
+4 -3
+4 -4
+4 -3
+2 -3
+8 -6
+8 -6
+6 -4
+20 -15
expand_less