c3998a7105
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10809 3c298f89-4303-0410-b956-a3cf2f4a3e73
30 lines
990 B
Diff
30 lines
990 B
Diff
Fix errors below when built with gcc-4.1.2
|
|
|
|
sysutil.c: In function 'vsf_sysutil_wait_exited_normally':
|
|
sysutil.c:604: error: assignment of read-only member '__in'
|
|
sysutil.c: In function 'vsf_sysutil_wait_get_exitcode':
|
|
sysutil.c:614: error: assignment of read-only member '__in'
|
|
|
|
Index: vsftpd-2.0.6/sysutil.c
|
|
===================================================================
|
|
--- vsftpd-2.0.6.orig/sysutil.c 2008-04-13 11:41:08.000000000 +0200
|
|
+++ vsftpd-2.0.6/sysutil.c 2008-04-13 11:41:09.000000000 +0200
|
|
@@ -601,7 +601,7 @@
|
|
vsf_sysutil_wait_exited_normally(
|
|
const struct vsf_sysutil_wait_retval* p_waitret)
|
|
{
|
|
- return WIFEXITED(p_waitret->exit_status);
|
|
+ return WIFEXITED(((struct vsf_sysutil_wait_retval *)p_waitret)->exit_status);
|
|
}
|
|
|
|
int
|
|
@@ -611,7 +611,7 @@
|
|
{
|
|
bug("not a normal exit in vsf_sysutil_wait_get_exitcode");
|
|
}
|
|
- return WEXITSTATUS(p_waitret->exit_status);
|
|
+ return WEXITSTATUS(((struct vsf_sysutil_wait_retval *)p_waitret)->exit_status);
|
|
}
|
|
|
|
void
|