mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 10:12:18 +00:00
Improved install script and fixed some warnings.
This commit is contained in:
parent
186a64f4ac
commit
6b234354cd
@ -2,6 +2,6 @@
|
||||
|
||||
make clean
|
||||
autoreconf -i
|
||||
CFLAGS="-g" ./configure
|
||||
CFLAGS="-g" "-std=c99" ./configure
|
||||
make
|
||||
sudo make install
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user