diff options
| author | SND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-12 18:54:28 +0000 |
|---|---|---|
| committer | SND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-12 18:54:28 +0000 |
| commit | a58cfdac407bc1d8fedc11acd924b275ba28cc51 (patch) | |
| tree | b4c2e08c34ef1bfe0ba947ef8eed931c9a43fc0e /plugins/dfnet/unix.c | |
| parent | 9bdd06684bcc627c06ddcf4c406f6b48f0dfe389 (diff) | |
| download | pcsxr-a58cfdac407bc1d8fedc11acd924b275ba28cc51.tar.gz | |
Commited patch in issue #8171 (by darktjm).
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@64524 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfnet/unix.c')
| -rw-r--r-- | plugins/dfnet/unix.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/dfnet/unix.c b/plugins/dfnet/unix.c index 390a5fc3..6b082899 100644 --- a/plugins/dfnet/unix.c +++ b/plugins/dfnet/unix.c @@ -15,11 +15,11 @@ #include <errno.h> #include <signal.h> #include <sys/wait.h> -extern int errno; #include "dfnet.h" +#include "psemu_plugin_defs.h" -int ExecCfg(const char *arg, int f) { +static int ExecCfg(const char *arg, int f) { char cfg[512]; strcpy(cfg, "cfg/cfgDFNet"); @@ -27,7 +27,7 @@ int ExecCfg(const char *arg, int f) { strcat(cfg, arg); if (f) { - if (fork() == 0) { system(cfg); exit(0); } + if (fork() == 0) { exit(system(cfg)); } return 0; } @@ -82,8 +82,9 @@ int sockPing() { (tvn.tv_usec - tv.tv_usec) / 1000; } -void CALLBACK NETconfigure() { +long CALLBACK NETconfigure() { ExecCfg("configure", 1); + return 0; } void CALLBACK NETabout() { @@ -92,7 +93,7 @@ void CALLBACK NETabout() { pid_t cfgpid = 0; -void OnWaitDlg_Abort(int num) { +static void OnWaitDlg_Abort(int num) { WaitCancel = 1; cfgpid = 0; } |
