aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/buf.c b/buf.c
index 67b7b26..b3150a4 100644
--- a/buf.c
+++ b/buf.c
@@ -3,7 +3,9 @@
#include <string.h>
#include "buf.h"
-#define min(a,b) (a<b) ? a : b
+int min(int a, int b) {
+ return ((a<b) ? a : b);
+}
struct buf_node{
char* text;