Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix loop in autoconf volatile #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/config/auto-aux/align.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ int speedtest(p)
return total;
}

main()
int main(int argc, char ** argv)
{
long n[1001];
int speed_aligned, speed_unaligned;
Expand Down
2 changes: 1 addition & 1 deletion src/config/auto-aux/bytecopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ char buffer[27];
#define cpy copy
#endif

main()
int main(int argc, char ** argv)
{
cpy("abcdefghijklmnopqrstuvwxyz", buffer, 27);
if (strcmp(buffer, "abcdefghijklmnopqrstuvwxyz") != 0) exit(1);
Expand Down
2 changes: 1 addition & 1 deletion src/config/auto-aux/dblalign.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void sig_handler()
longjmp(failure, 1);
}

main()
int main(int argc, char ** argv)
{
#define ARRSIZE 100
long n[ARRSIZE];
Expand Down
5 changes: 3 additions & 2 deletions src/config/auto-aux/endian.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#include <stdlib.h>
#include <string.h>
#include <stdint.h>

main()
int main(int argc, char ** argv)
{
long n[2];
int32_t n[2];
char * p;

n[0] = 0x41424344;
Expand Down
2 changes: 1 addition & 1 deletion src/config/auto-aux/schar.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <stdlib.h>

char foo[]="\377";
main()
int main(int argc, char ** argv)
{
int i;
i = foo[0];
Expand Down
2 changes: 1 addition & 1 deletion src/config/auto-aux/schar2.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <stdlib.h>

signed char foo[]="\377";
main()
int main(int argc, char ** argv)
{
int i;
i = foo[0];
Expand Down
3 changes: 2 additions & 1 deletion src/config/auto-aux/setjmp.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <setjmp.h>
#include <stdlib.h>

main()
int main(int argc, char ** argv)
{
jmp_buf buf;
int i;
Expand Down
4 changes: 2 additions & 2 deletions src/config/auto-aux/sighandler.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <signal.h>

int main()
int main(int argc, char ** argv)
{
SIGRETURN (*old)();
sig_t old;
old = signal(SIGQUIT, SIG_DFL);
return 0;
}
1 change: 1 addition & 0 deletions src/config/auto-aux/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <stdio.h>
#include <signal.h>
#include <unistd.h>

int counter;

Expand Down