|
From: Peter K. <pk...@us...> - 2001-03-04 15:47:59
|
The following file was modified in apps/bluetooth/btd:
Name Old version New version Comment
---- ----------- ----------- -------
btd.c 1.81 1.82=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
No longer needed to pass any arguments to sdp_server. The default
values should work.
The diff of the modified file(s):
--- btd.c 2001/03/01 10:36:22 1.81
+++ btd.c 2001/03/04 15:49:23 1.82
@@ -281,7 +281,9 @@
static int open_socket(char *name, int role);
=20
static int sdpsrv_pid =3D 0;
+#ifndef BTD_USERSTACK
static void start_sdp_server(void);
+#endif
=20
/* misc */
#ifndef BTD_USERSTACK
@@ -859,25 +861,21 @@
}
}
=20
+#ifndef BTD_USERSTACK
static void start_sdp_server(void)
{
-#ifndef BTD_USERSTACK
- char *args[] =3D { SDPSRV_CMD, "/etc/sdp.xml", "/proc/sdp_srv", NULL };
-#else=20
- char *args[] =3D { SDPSRV_CMD, "/etc/sdp.xml", NULL };
-#endif
-=20=20
syslog(LOG_INFO, "Starting SDP server\n");
=20=20=20
if (!(sdpsrv_pid =3D vfork()))
{
- execvp(SDPSRV_CMD, args);
+ execlp(SDPSRV_CMD, SDPSRV_CMD);
=20
fprintf(stderr, "%s: no such file or directory\n", SDPSRV_CMD);
=20
_exit(0);
}
}
+#endif
=20
static void start_pppd(void)
{
|