aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/StringUtil.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-16 09:52:00 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-16 09:52:00 (GMT)
commit772ec145952bfddc7888504f22859df1f24f8d5e (patch)
tree58356cf14f52792db6fda3c482a5b9865f711e56 /src/FbTk/StringUtil.cc
parente37cad714c77b24e4421f5dc1b3d01fe685b637a (diff)
downloadfluxbox-772ec145952bfddc7888504f22859df1f24f8d5e.zip
fluxbox-772ec145952bfddc7888504f22859df1f24f8d5e.tar.bz2
Fix uninitialized variables; cosmetics
Note: I expect only modern compilers will hit the source of fluxbox. It seems futile to guard stdlib headers while demanding <algorithm> etc. This should trim down the noise in the source quite a bit.
Diffstat (limited to 'src/FbTk/StringUtil.cc')
-rw-r--r--src/FbTk/StringUtil.cc36
1 files changed, 5 insertions, 31 deletions
diff --git a/src/FbTk/StringUtil.cc b/src/FbTk/StringUtil.cc
index d6f2c8f..63da383 100644
--- a/src/FbTk/StringUtil.cc
+++ b/src/FbTk/StringUtil.cc
@@ -21,37 +21,11 @@
21 21
22#include "StringUtil.hh" 22#include "StringUtil.hh"
23 23
24#ifdef HAVE_CSTDIO 24#include <cstdio>
25 #include <cstdio> 25#include <cctype>
26#else 26#include <cassert>
27 #include <stdio.h> 27#include <cstring>
28#endif 28#include <cerrno>
29#ifdef HAVE_CSTDLIB
30 #include <cstdlib>
31#else
32 #include <stdlib.h>
33#endif
34#ifdef HAVE_CCTYPE
35 #include <cctype>
36#else
37 #include <ctype.h>
38#endif
39#ifdef HAVE_CASSERT
40 #include <cassert>
41#else
42 #include <assert.h>
43#endif
44#ifdef HAVE_CSTRING
45 #include <cstring>
46#else
47 #include <string.h>
48#endif
49
50#ifdef HAVE_CERRNO
51 #include <cerrno>
52#else
53 #include <errno.h>
54#endif
55 29
56#ifndef _WIN32 30#ifndef _WIN32
57#include <unistd.h> 31#include <unistd.h>