Skip to content

Commit b8871ca

Browse files
committed
fix: errno -> errno_ (in favor of SpringQL/SpringQL-client-c#54)
1 parent 79d0684 commit b8871ca

File tree

6 files changed

+27
-27
lines changed

6 files changed

+27
-27
lines changed

docs/get-started/install-and-run-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ Create `main.c` and write the demo code as below:
190190

191191
void abort_with_report()
192192
{
193-
SpringErrno errno;
193+
SpringErrno errno_;
194194
char errmsg[1024];
195-
spring_last_err(&errno, errmsg, 1024);
196-
fprintf(stderr, "Error occurred (%d): %s", errno, errmsg);
195+
spring_last_err(&errno_, errmsg, 1024);
196+
fprintf(stderr, "Error occurred (%d): %s", errno_, errmsg);
197197
abort();
198198
}
199199

docs/get-started/write-basic-apps.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ cargo run
146146

147147
void abort_with_report()
148148
{
149-
SpringErrno errno;
149+
SpringErrno errno_;
150150
char errmsg[1024];
151-
spring_last_err(&errno, errmsg, 1024);
152-
fprintf(stderr, "Error occurred (%d): %s", errno, errmsg);
151+
spring_last_err(&errno_, errmsg, 1024);
152+
fprintf(stderr, "Error occurred (%d): %s", errno_, errmsg);
153153
abort();
154154
}
155155

@@ -529,10 +529,10 @@ cargo run
529529

530530
void abort_with_report()
531531
{
532-
SpringErrno errno;
532+
SpringErrno errno_;
533533
char errmsg[1024];
534-
spring_last_err(&errno, errmsg, 1024);
535-
fprintf(stderr, "Error occurred (%d): %s", errno, errmsg);
534+
spring_last_err(&errno_, errmsg, 1024);
535+
fprintf(stderr, "Error occurred (%d): %s", errno_, errmsg);
536536
abort();
537537
}
538538

versioned_docs/version-0.14/get-started/install-and-run-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ Create `main.c` and write the demo code as below:
190190

191191
void abort_with_report()
192192
{
193-
SpringErrno errno;
193+
SpringErrno errno_;
194194
char errmsg[1024];
195-
spring_last_err(&errno, errmsg, 1024);
196-
fprintf(stderr, "Error occurred (%d): %s", errno, errmsg);
195+
spring_last_err(&errno_, errmsg, 1024);
196+
fprintf(stderr, "Error occurred (%d): %s", errno_, errmsg);
197197
abort();
198198
}
199199

versioned_docs/version-0.14/get-started/write-basic-apps.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ cargo run
146146

147147
void abort_with_report()
148148
{
149-
SpringErrno errno;
149+
SpringErrno errno_;
150150
char errmsg[1024];
151-
spring_last_err(&errno, errmsg, 1024);
152-
fprintf(stderr, "Error occurred (%d): %s", errno, errmsg);
151+
spring_last_err(&errno_, errmsg, 1024);
152+
fprintf(stderr, "Error occurred (%d): %s", errno_, errmsg);
153153
abort();
154154
}
155155

@@ -529,10 +529,10 @@ cargo run
529529

530530
void abort_with_report()
531531
{
532-
SpringErrno errno;
532+
SpringErrno errno_;
533533
char errmsg[1024];
534-
spring_last_err(&errno, errmsg, 1024);
535-
fprintf(stderr, "Error occurred (%d): %s", errno, errmsg);
534+
spring_last_err(&errno_, errmsg, 1024);
535+
fprintf(stderr, "Error occurred (%d): %s", errno_, errmsg);
536536
abort();
537537
}
538538

versioned_docs/version-0.15/get-started/install-and-run-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ Create `main.c` and write the demo code as below:
190190

191191
void abort_with_report()
192192
{
193-
SpringErrno errno;
193+
SpringErrno errno_;
194194
char errmsg[1024];
195-
spring_last_err(&errno, errmsg, 1024);
196-
fprintf(stderr, "Error occurred (%d): %s", errno, errmsg);
195+
spring_last_err(&errno_, errmsg, 1024);
196+
fprintf(stderr, "Error occurred (%d): %s", errno_, errmsg);
197197
abort();
198198
}
199199

versioned_docs/version-0.15/get-started/write-basic-apps.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ cargo run
146146

147147
void abort_with_report()
148148
{
149-
SpringErrno errno;
149+
SpringErrno errno_;
150150
char errmsg[1024];
151-
spring_last_err(&errno, errmsg, 1024);
152-
fprintf(stderr, "Error occurred (%d): %s", errno, errmsg);
151+
spring_last_err(&errno_, errmsg, 1024);
152+
fprintf(stderr, "Error occurred (%d): %s", errno_, errmsg);
153153
abort();
154154
}
155155

@@ -529,10 +529,10 @@ cargo run
529529

530530
void abort_with_report()
531531
{
532-
SpringErrno errno;
532+
SpringErrno errno_;
533533
char errmsg[1024];
534-
spring_last_err(&errno, errmsg, 1024);
535-
fprintf(stderr, "Error occurred (%d): %s", errno, errmsg);
534+
spring_last_err(&errno_, errmsg, 1024);
535+
fprintf(stderr, "Error occurred (%d): %s", errno_, errmsg);
536536
abort();
537537
}
538538

0 commit comments

Comments
 (0)