X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=util.c;h=ca8f2e87ae5d49213400bf13021118a12ba7be59;hb=004832f6ec167eedf346886942466a014dfe873b;hp=c6c89253f4b501f20b2fbb4149bf6b1813a0332b;hpb=9af3c502dae7420714519dd13dff6aba40fc1fa3;p=xonotic%2Fgmqcc.git diff --git a/util.c b/util.c index c6c8925..ca8f2e8 100644 --- a/util.c +++ b/util.c @@ -21,8 +21,10 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#include -#include +#include +#include +#include + #include "gmqcc.h" void util_debug(const char *area, const char *ms, ...) { @@ -319,7 +321,7 @@ int util_asprintf(char **ret, const char *fmt, ...) { allocated = (char*)mem_a(4096); /* A page must be enough */ strerror_s(allocated, 4096, num); - + vec_push(vector, allocated); return (const char *)allocated; } @@ -388,7 +390,7 @@ int util_asprintf(char **ret, const char *fmt, ...) { static uint32_t mt_state[MT_SIZE]; static size_t mt_index = 0; -static GMQCC_INLINE void mt_generate() { +static GMQCC_INLINE void mt_generate(void) { /* * The loop has been unrolled here: the original paper and implemenation * Called for the following code: