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:
@@ -10,7 +10,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
return realloc(NULL, 17) == NULL;
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@ ac_cv_func_snprintf_working=yes
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
int main()
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
char foo[[3]];
|
||||
snprintf(foo, 2, "12");
|
||||
|
@@ -32,7 +32,7 @@ if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
|
||||
#include <com_err.h>
|
||||
#include <string.h>
|
||||
#include "conftest_et.h"
|
||||
int main(){
|
||||
int main(int argc, char **argv){
|
||||
#ifndef ERROR_TABLE_BASE_conf
|
||||
#error compile_et does not handle error_table N M
|
||||
#endif
|
||||
|
@@ -11,7 +11,7 @@ if test "$ac_cv_func_getpwnam_r" = yes; then
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
#define _POSIX_PTHREAD_SEMANTICS
|
||||
#include <pwd.h>
|
||||
int main()
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
struct passwd pw, *pwd;
|
||||
return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
|
||||
|
@@ -34,11 +34,11 @@ if test "$no_x" != yes; then
|
||||
LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
|
||||
AC_RUN_IFELSE([
|
||||
#include <X11/Xlib.h>
|
||||
foo()
|
||||
foo(void)
|
||||
{
|
||||
XOpenDisplay(NULL);
|
||||
}
|
||||
main()
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@@ -16,11 +16,11 @@ cat > conftest_bar.$ac_ext <<'EOF'
|
||||
#include "confdefs.h"
|
||||
extern int foo;
|
||||
|
||||
int t() {
|
||||
int t(void) {
|
||||
return foo;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main(int argc, char **argv) {
|
||||
return t();
|
||||
}
|
||||
EOF
|
||||
|
@@ -35,7 +35,7 @@ case "$host" in
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
int main()
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int ret;
|
||||
ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
|
||||
|
Reference in New Issue
Block a user