mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-26 04:02:19 +00:00
fixed char * compilation error
This commit is contained in:
parent
cb8258ce6e
commit
ddb12a1f37
@ -59,7 +59,19 @@ int validity_check(char request) {
|
||||
|
||||
}
|
||||
|
||||
void response_cleanup(char response) {
|
||||
void response_conversion(char response) {
|
||||
|
||||
char *response1;
|
||||
|
||||
response1 = (char*)malloc(512);
|
||||
|
||||
strcpy(response, response1);
|
||||
|
||||
response_cleanup(response1);
|
||||
|
||||
}
|
||||
|
||||
void response_cleanup(char *response[BUFFER_LENGTH]) {
|
||||
|
||||
char remove = 'a';
|
||||
|
||||
@ -111,7 +123,7 @@ void ntkd_request(char request) {
|
||||
/* Increment the number of bytes that have been received so far */
|
||||
bytesReceived += rc;
|
||||
}
|
||||
response_cleanup(response);
|
||||
response_conversion(response);
|
||||
}
|
||||
|
||||
void opensocket(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user