Skip to content

Commit 39b050f

Browse files
committed
Adding a simple pascal-like string type
Yes, we now have a pascal string implementation, welcome to C
1 parent db47303 commit 39b050f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Makefile.am

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ wifidog_SOURCES = commandline.c \
2828
ping_thread.c \
2929
safe.c \
3030
httpd_thread.c \
31-
simple_http.c
31+
simple_http.c \
32+
pstring.c
3233

3334
noinst_HEADERS = commandline.h \
3435
common.h \
@@ -47,6 +48,7 @@ noinst_HEADERS = commandline.h \
4748
ping_thread.h \
4849
safe.h \
4950
httpd_thread.h \
50-
simple_http.h
51+
simple_http.h \
52+
pstring.h
5153

5254
wdctl_SOURCES = wdctl.c

src/safe.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* vim: set et ts=4 sts=4 sw=4 : */
12
/********************************************************************\
23
* This program is free software; you can redistribute it and/or *
34
* modify it under the terms of the GNU General Public License as *
@@ -36,7 +37,7 @@
3637
void *safe_malloc(size_t);
3738

3839
/** @brief Safe version of realloc */
39-
void *realloc(void *, size_t);
40+
void *safe_realloc(void *, size_t);
4041

4142
/* @brief Safe version of strdup
4243
*/

0 commit comments

Comments
 (0)