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
autoreconf -i
CFLAGS="-g" ./configure
CFLAGS="-g" "-std=c99" ./configure
make
sudo make install

View File

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