From a3ac03357eeab2917633df03a98b10a32dff1a7d Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Thu, 13 Jun 1991 03:59:12 +0000
Subject: [PATCH] Fixed some typos.

---
 src/server/string-malloc.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/server/string-malloc.c b/src/server/string-malloc.c
index ec607530d..218a658ed 100644
--- a/src/server/string-malloc.c
+++ b/src/server/string-malloc.c
@@ -6,14 +6,16 @@
  */
 
 #include <stdio.h>
+#include <stddef.h>
 #include "smalloc.h"
 #include "log.h"
 #include "exp.h"
+#include "string-malloc.h"
 
 static int no_of_allocated_blocks = 0;
 
 EXPORT  void *
-string-malloc(size_t size)
+string_malloc(size_t size)
 {
    ++no_of_allocated_blocks;
    return smalloc (size);
@@ -21,18 +23,18 @@ string-malloc(size_t size)
 
 
 EXPORT  void
-string-free(void * ptr)
+string_free(void * ptr)
 {
     --no_of_allocated_blocks;
     sfree(ptr);
 }
 
 EXPORT  void *
-string-realloc (void * ptr,
+string_realloc (void * ptr,
 		size_t size)
 {
     if ( ptr == NULL )
-	return string-alloc (size);
+	return string_malloc (size);
 
     return srealloc (ptr, size);
 }
-- 
GitLab