use ansi c declarations

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15435 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-06-16 19:45:52 +00:00
parent bf6767ab53
commit 7988a94231
7 changed files with 9 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
int main() int main(int argc, char **argv)
{ {
return realloc(NULL, 17) == NULL; return realloc(NULL, 17) == NULL;
} }

View File

@@ -6,7 +6,7 @@ ac_cv_func_snprintf_working=yes
AC_RUN_IFELSE([AC_LANG_SOURCE([[ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
int main() int main(int argc, char **argv)
{ {
char foo[[3]]; char foo[[3]];
snprintf(foo, 2, "12"); snprintf(foo, 2, "12");

View File

@@ -32,7 +32,7 @@ if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
#include <com_err.h> #include <com_err.h>
#include <string.h> #include <string.h>
#include "conftest_et.h" #include "conftest_et.h"
int main(){ int main(int argc, char **argv){
#ifndef ERROR_TABLE_BASE_conf #ifndef ERROR_TABLE_BASE_conf
#error compile_et does not handle error_table N M #error compile_et does not handle error_table N M
#endif #endif

View File

@@ -11,7 +11,7 @@ if test "$ac_cv_func_getpwnam_r" = yes; then
AC_RUN_IFELSE([AC_LANG_SOURCE([[ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#define _POSIX_PTHREAD_SEMANTICS #define _POSIX_PTHREAD_SEMANTICS
#include <pwd.h> #include <pwd.h>
int main() int main(int argc, char **argv)
{ {
struct passwd pw, *pwd; struct passwd pw, *pwd;
return getpwnam_r("", &pw, NULL, 0, &pwd) < 0; return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;

View File

@@ -34,11 +34,11 @@ if test "$no_x" != yes; then
LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
AC_RUN_IFELSE([ AC_RUN_IFELSE([
#include <X11/Xlib.h> #include <X11/Xlib.h>
foo() foo(void)
{ {
XOpenDisplay(NULL); XOpenDisplay(NULL);
} }
main() main(int argc, char **argv)
{ {
return 0; return 0;
} }

View File

@@ -16,11 +16,11 @@ cat > conftest_bar.$ac_ext <<'EOF'
#include "confdefs.h" #include "confdefs.h"
extern int foo; extern int foo;
int t() { int t(void) {
return foo; return foo;
} }
int main() { int main(int argc, char **argv) {
return t(); return t();
} }
EOF EOF

View File

@@ -35,7 +35,7 @@ case "$host" in
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
int main() int main(int argc, char **argv)
{ {
int ret; int ret;
ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);