diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-29 01:35:09 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-29 01:35:09 -0500 |
commit | 4595ada2f69b42670c85a63c7d2344af63f2afe7 (patch) | |
tree | 0d528d8177aceefcf74fb7306fc0fc7cc3c41ece /src/compat.c | |
parent | 8ae4f8f5985445b1ce3547975f407847c0fee0f7 (diff) | |
download | spmc-4595ada2f69b42670c85a63c7d2344af63f2afe7.tar.gz |
Minor fixes:
* size_t in place of int
* Moved some variables closer to their execution scope
* Add some error checks
Diffstat (limited to 'src/compat.c')
-rw-r--r-- | src/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat.c b/src/compat.c index 082a602..062c939 100644 --- a/src/compat.c +++ b/src/compat.c @@ -1,7 +1,7 @@ -#include <string.h> #include "config.h" #ifndef HAVE_STRSEP +#include <string.h> // credit: Dan Cross via https://unixpapa.com/incnote/string.html char *strsep(char **sp, char *sep) { |