1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-02 17:26:44 +02:00

made error handling more consistent and added exit function

This commit is contained in:
Jfreegman
2013-09-11 00:02:27 -04:00
parent 2e84836f8c
commit 40dcfc82d2
6 changed files with 21 additions and 23 deletions

View File

@ -10,11 +10,9 @@
#include <string.h>
#include <ctype.h>
#include "toxic_windows.h"
#include "prompt.h"
extern char *DATA_FILE;
extern int store_data(Tox *m, char *path);
uint8_t pending_requests[MAX_STR_SIZE][TOX_CLIENT_ID_SIZE]; // XXX
uint8_t num_requests = 0; // XXX
@ -298,7 +296,7 @@ void cmd_quit(ToxWindow *self, Tox *m, int argc, char **argv)
store_data(m, DATA_FILE);
free(DATA_FILE);
tox_kill(m);
exit(0);
exit(EXIT_SUCCESS);
}
void cmd_help(ToxWindow *self, Tox *m, int argc, char **argv)