mg

port of mg editor (openbsd to linux)
Log | Files | Refs | README

commit 096498a0522cebdc6ad1566a7c40fedd8833d225
parent 7ccd13d69f927aae9cac38da4c3601dd29ea648b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 28 Nov 2014 16:25:22 +0100

util.h: code-style, include stdint.h for uint32_t

Diffstat:
util.h | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/util.h b/util.h @@ -2,6 +2,7 @@ #define _UTIL_H_ #include <sys/types.h> +#include <stdint.h> #include <stdio.h> /* libopenbsd util.h */ @@ -12,11 +13,12 @@ #define REG_STARTEND 0 #endif -void * reallocarray(void *, size_t, size_t); -size_t strlcat(char *, const char *, size_t); -size_t strlcpy(char *, const char *, size_t); +uint32_t arc4random(void); +char * fgetln(FILE *, size_t *); +void * reallocarray(void *, size_t, size_t); +size_t strlcat(char *, const char *, size_t); +size_t strlcpy(char *, const char *, size_t); long long strtonum(const char *, long long, long long, const char **); -uint32_t arc4random(void);/* $OpenBSD: util.h,v 1.34 2013/06/03 21:07:02 tedu Exp $ */ /* from libutil util.h */