projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure all SPTPS functions are prefixed with sptps_.
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
b2e6e82
..
4f06daa
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-516,7
+516,7
@@
static bool remove_service(void) {
}
#endif
}
#endif
-int main(int argc, char *argv[]
, char *envp[]
) {
+int main(int argc, char *argv[]) {
int fd;
int result;
char host[128];
int fd;
int result;
char host[128];
@@
-577,7
+577,7
@@
int main(int argc, char *argv[], char *envp[]) {
#endif
if (slash++) {
c = xmalloc((slash - argv[0]) + sizeof("tincd"));
#endif
if (slash++) {
c = xmalloc((slash - argv[0]) + sizeof("tincd"));
- sprintf(c, "%.*stincd",
slash - argv[0]
, argv[0]);
+ sprintf(c, "%.*stincd",
(int)(slash - argv[0])
, argv[0]);
}
else
c = "tincd";
}
else
c = "tincd";
@@
-586,7
+586,7
@@
int main(int argc, char *argv[], char *envp[]) {
if (i != optind && strcmp(argv[i], "--") != 0)
argv[j++] = argv[i];
argv[j] = NULL;
if (i != optind && strcmp(argv[i], "--") != 0)
argv[j++] = argv[i];
argv[j] = NULL;
- execv
e(c, argv, envp
);
+ execv
p(c, argv
);
fprintf(stderr, "Could not start %s: %s\n", c, strerror(errno));
return 1;
}
fprintf(stderr, "Could not start %s: %s\n", c, strerror(errno));
return 1;
}