Skip to content

Commit 8e5472e

Browse files
committed
Add missing static linkage to samples
1 parent be7cfd8 commit 8e5472e

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

samples/AssignmentAddressToInteger/bad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
int foo(int *p)
1+
static int foo(int *p)
22
{
33
int a = p;
44
return a + 4;

samples/AssignmentAddressToInteger/good.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
int* foo(int *p)
1+
static int* foo(int *p)
22
{
33
return p + 4;
44
}

samples/autoVariables/bad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
void foo(int **a)
1+
static void foo(int **a)
22
{
33
int b = 1;
44
*a = &b;

samples/autoVariables/good.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
void foo(int **a)
1+
static void foo(int **a)
22
{
33
int b = 1;
44
**a = b;

samples/incorrectLogicOperator/bad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
void foo(int x) {
2+
static void foo(int x) {
33
if (x >= 0 || x <= 10) {}
44
}
55

samples/incorrectLogicOperator/good.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
void foo(int x) {
2+
static void foo(int x) {
33
if (x >= 0 && x <= 10) {}
44
}
55

0 commit comments

Comments
 (0)