More prefix fixes.
This commit is contained in:
parent
30bb4bb40c
commit
71be8a8b74
4
p1load.c
4
p1load.c
@ -136,7 +136,7 @@ int main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
#if defined(LINUX)
|
#if defined(LINUX)
|
||||||
static char buf[64];
|
static char buf[64];
|
||||||
sprintf(buf, "%s%d", PORT_PREFIX, atoi(port));
|
sprintf(buf, "/dev/%s%d", PORT_PREFIX, atoi(port));
|
||||||
port = buf;
|
port = buf;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ int main(int argc, char *argv[])
|
|||||||
#if defined(MACOSX)
|
#if defined(MACOSX)
|
||||||
if (port[0] != '/') {
|
if (port[0] != '/') {
|
||||||
static char buf[64];
|
static char buf[64];
|
||||||
sprintf(buf, "%s-%s", PORT_PREFIX, port);
|
sprintf(buf, "/dev/%s-%s", PORT_PREFIX, port);
|
||||||
port = buf;
|
port = buf;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user