summaryrefslogtreecommitdiff
path: root/plugins/dfnet/unix.c
diff options
context:
space:
mode:
authorSND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-03-12 18:54:28 +0000
committerSND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-03-12 18:54:28 +0000
commita58cfdac407bc1d8fedc11acd924b275ba28cc51 (patch)
treeb4c2e08c34ef1bfe0ba947ef8eed931c9a43fc0e /plugins/dfnet/unix.c
parent9bdd06684bcc627c06ddcf4c406f6b48f0dfe389 (diff)
downloadpcsxr-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.c11
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;
}