Make syslogd.c, init.c, and update.c compile error/warning free under both libc5 and libc6.
-Erik
This commit is contained in:
		
							
								
								
									
										2
									
								
								init.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.c
									
									
									
									
									
								
							@@ -93,7 +93,7 @@
 | 
				
			|||||||
#if defined(__GLIBC__)
 | 
					#if defined(__GLIBC__)
 | 
				
			||||||
#include <sys/kdaemon.h>
 | 
					#include <sys/kdaemon.h>
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
_syscall2(int, bdflush, int, func, int, data);
 | 
					static _syscall2(int, bdflush, int, func, int, data);
 | 
				
			||||||
#endif							/* __GLIBC__ */
 | 
					#endif							/* __GLIBC__ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -93,7 +93,7 @@
 | 
				
			|||||||
#if defined(__GLIBC__)
 | 
					#if defined(__GLIBC__)
 | 
				
			||||||
#include <sys/kdaemon.h>
 | 
					#include <sys/kdaemon.h>
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
_syscall2(int, bdflush, int, func, int, data);
 | 
					static _syscall2(int, bdflush, int, func, int, data);
 | 
				
			||||||
#endif							/* __GLIBC__ */
 | 
					#endif							/* __GLIBC__ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,12 +28,14 @@
 | 
				
			|||||||
#include <sys/param.h>
 | 
					#include <sys/param.h>
 | 
				
			||||||
#include <sys/syslog.h>
 | 
					#include <sys/syslog.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__GLIBC__)
 | 
					#if defined(__GLIBC__)
 | 
				
			||||||
#include <sys/kdaemon.h>
 | 
					#include <sys/kdaemon.h>
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
_syscall2(int, bdflush, int, func, int, data);
 | 
					static _syscall2(int, bdflush, int, func, int, data);
 | 
				
			||||||
#endif							/* __GLIBC__ */
 | 
					#endif							/* __GLIBC__ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static char update_usage[] =
 | 
					static char update_usage[] =
 | 
				
			||||||
	"update [options]\n"
 | 
						"update [options]\n"
 | 
				
			||||||
#ifndef BB_FEATURE_TRIVIAL_HELP
 | 
					#ifndef BB_FEATURE_TRIVIAL_HELP
 | 
				
			||||||
@@ -109,7 +111,7 @@ extern int update_main(int argc, char **argv)
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	exit( TRUE);
 | 
						return( TRUE);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,12 +42,10 @@
 | 
				
			|||||||
#include <sys/param.h>
 | 
					#include <sys/param.h>
 | 
				
			||||||
#include <linux/unistd.h>
 | 
					#include <linux/unistd.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef socklen_t
 | 
					 | 
				
			||||||
typedef unsigned int socklen_t;
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#if __GNU_LIBRARY__ < 5
 | 
					#if __GNU_LIBRARY__ < 5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					typedef unsigned int socklen_t;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef __alpha__
 | 
					#ifndef __alpha__
 | 
				
			||||||
# define __NR_klogctl __NR_syslog
 | 
					# define __NR_klogctl __NR_syslog
 | 
				
			||||||
static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
 | 
					static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,12 +42,10 @@
 | 
				
			|||||||
#include <sys/param.h>
 | 
					#include <sys/param.h>
 | 
				
			||||||
#include <linux/unistd.h>
 | 
					#include <linux/unistd.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef socklen_t
 | 
					 | 
				
			||||||
typedef unsigned int socklen_t;
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#if __GNU_LIBRARY__ < 5
 | 
					#if __GNU_LIBRARY__ < 5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					typedef unsigned int socklen_t;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef __alpha__
 | 
					#ifndef __alpha__
 | 
				
			||||||
# define __NR_klogctl __NR_syslog
 | 
					# define __NR_klogctl __NR_syslog
 | 
				
			||||||
static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
 | 
					static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								update.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								update.c
									
									
									
									
									
								
							@@ -28,12 +28,14 @@
 | 
				
			|||||||
#include <sys/param.h>
 | 
					#include <sys/param.h>
 | 
				
			||||||
#include <sys/syslog.h>
 | 
					#include <sys/syslog.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__GLIBC__)
 | 
					#if defined(__GLIBC__)
 | 
				
			||||||
#include <sys/kdaemon.h>
 | 
					#include <sys/kdaemon.h>
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
_syscall2(int, bdflush, int, func, int, data);
 | 
					static _syscall2(int, bdflush, int, func, int, data);
 | 
				
			||||||
#endif							/* __GLIBC__ */
 | 
					#endif							/* __GLIBC__ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static char update_usage[] =
 | 
					static char update_usage[] =
 | 
				
			||||||
	"update [options]\n"
 | 
						"update [options]\n"
 | 
				
			||||||
#ifndef BB_FEATURE_TRIVIAL_HELP
 | 
					#ifndef BB_FEATURE_TRIVIAL_HELP
 | 
				
			||||||
@@ -109,7 +111,7 @@ extern int update_main(int argc, char **argv)
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	exit( TRUE);
 | 
						return( TRUE);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user