mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2025-10-28 11:51:08 -04:00
Compare commits
3 Commits
b1b46ca08c
...
Develop
| Author | SHA1 | Date | |
|---|---|---|---|
| dfd840de1f | |||
| d5515f43ce | |||
| 4a1da8d373 |
11
BUILDING.md
11
BUILDING.md
@ -1,13 +1,18 @@
|
|||||||
Building and installing
|
Building and installing
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
#### Requirements & dependencies:
|
### Prerequisites
|
||||||
|
|
||||||
- GCC compatible compiler
|
- GCC compatible compiler
|
||||||
- POSIX getopt support from **<unistd.h>**
|
- make
|
||||||
|
- POSIX.1 support
|
||||||
|
* getopt()
|
||||||
|
* strcasecmp()
|
||||||
|
* tcflush()
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
#### Compiling
|
### Compiling
|
||||||
|
|
||||||
cc -std=gnu99 -Wpedantic -Wall -Wextra -Wno-gnu-zero-variadic-macro-arguments -O2 -o mcrcon mcrcon.c
|
cc -std=gnu99 -Wpedantic -Wall -Wextra -Wno-gnu-zero-variadic-macro-arguments -O2 -o mcrcon mcrcon.c
|
||||||
|
|
||||||
|
|||||||
10
mcrcon.c
10
mcrcon.c
@ -827,15 +827,5 @@ int get_line(char *buffer, int bsize)
|
|||||||
buffer[strcspn(buffer, "\r\n")] = '\0';
|
buffer[strcspn(buffer, "\r\n")] = '\0';
|
||||||
int len = strlen(buffer);
|
int len = strlen(buffer);
|
||||||
|
|
||||||
#if 0
|
|
||||||
// clean input buffer if needed
|
|
||||||
#ifndef _WIN32
|
|
||||||
if (len == bsize - 1) {
|
|
||||||
int ch;
|
|
||||||
while ((ch = getchar()) != '\n' && ch != EOF);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user