mirror of https://github.com/dirtbags/moth.git
Fixing those stupid exit(10); things. ~Cherish
This commit is contained in:
parent
2de781fb5f
commit
0f1a8d66fe
|
@ -16,7 +16,7 @@
|
||||||
static void DieWithError(const char* errorMessage)
|
static void DieWithError(const char* errorMessage)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s\n", errorMessage);
|
fprintf(stderr, "%s\n", errorMessage);
|
||||||
exit(10);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
@ -32,7 +32,7 @@ int main(int argc, char *argv[])
|
||||||
if (argc != 4)
|
if (argc != 4)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Usage: %s <Multicast Address> <Port> <Send String>\n", argv[0]);
|
fprintf(stderr, "Usage: %s <Multicast Address> <Port> <Send String>\n", argv[0]);
|
||||||
exit(10);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
multicastIP = argv[1]; /* First arg: multicast IP address */
|
multicastIP = argv[1]; /* First arg: multicast IP address */
|
||||||
|
|
Loading…
Reference in New Issue