Improved install script and fixed some warnings.

This commit is contained in:
MissValeska 2014-08-17 09:35:46 -07:00
parent 186a64f4ac
commit 6b234354cd
2 changed files with 2 additions and 3 deletions

View File

@ -2,6 +2,6 @@
make clean make clean
autoreconf -i autoreconf -i
CFLAGS="-g" ./configure CFLAGS="-g" "-std=c99" ./configure
make make
sudo make install sudo make install

View File

@ -64,9 +64,8 @@ void response_cleanup(char response[BUFFER_LENGTH]) {
char remove = 'a'; char remove = 'a';
char* c; char* c;
int x;
char* pPosition; char* pPosition;
while(pPosition = strchr(response, 'a') != NULL) { while((pPosition = strchr(response, 'a')) != NULL) {
if ((c = index(response, remove)) != NULL) { if ((c = index(response, remove)) != NULL) {
size_t len_left = sizeof(response) - (c+1-response); size_t len_left = sizeof(response) - (c+1-response);
memmove(c, c+1, len_left); memmove(c, c+1, len_left);