Skip to content

Commit a850be6

Browse files
Fix test.c format
1 parent 1fc421e commit a850be6

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| test.c:57:3:57:8 | call to ungetc | Call to banned function ungetc. |
2-
| test.c:60:3:60:7 | call to fread | Call to banned function fread. |
3-
| test.c:62:3:62:8 | call to ungetc | Call to banned function ungetc. |
1+
| test.c:55:3:55:8 | call to ungetc | Call to banned function ungetc. |
2+
| test.c:58:3:58:7 | call to fread | Call to banned function fread. |
3+
| test.c:60:3:60:8 | call to ungetc | Call to banned function ungetc. |

c/misra/test/rules/RULE-1-5/test.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,10 @@ extern int g5; // NON-COMPLIANT
4040
void f2(); // NON-COMPLIANT
4141
void f3(void); // COMPLIANT
4242

43-
void f4(int p1) {}; // COMPLIANT
44-
int f5(x) // NON_COMPLIANT
43+
void f4(int p1){}; // COMPLIANT
44+
int f5(x) // NON_COMPLIANT
4545
int x;
46-
{
47-
return 1;
48-
}
46+
{ return 1; }
4947

5048
// Rule 21.6 covers the below cases:
5149
void f6(void) {

0 commit comments

Comments
 (0)