a7e4453522
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6610 3c298f89-4303-0410-b956-a3cf2f4a3e73
28 lines
823 B
Diff
28 lines
823 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'
|
|
|
|
--- vsftpd-2.0.4-old/sysutil.c
|
|
+++ vsftpd-2.0.4-new/sysutil.c
|
|
@@ -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
|