summaryrefslogtreecommitdiff
path: root/testing/misc_tools.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-28 21:30:39 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-30 23:35:50 +0000
commit92ffad1a72bc8c422426d52ac408bd71242dd047 (patch)
treef592f353068dd2043525dd2cc04d6124a4ed4bc4 /testing/misc_tools.c
parent623e9ac331df7323660e21c8a2226523a5ee713b (diff)
Use nullptr as NULL pointer constant instead of NULL or 0.
This changes only code, no string literals or comments.
Diffstat (limited to 'testing/misc_tools.c')
-rw-r--r--testing/misc_tools.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/misc_tools.c b/testing/misc_tools.c
index a3a89c2f..14e0ba7e 100644
--- a/testing/misc_tools.c
+++ b/testing/misc_tools.c
@@ -21,6 +21,9 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef MISC_TOOLS_C
25#define MISC_TOOLS_C
26
24#ifdef HAVE_CONFIG_H 27#ifdef HAVE_CONFIG_H
25#include "config.h" 28#include "config.h"
26#endif 29#endif
@@ -42,6 +45,8 @@
42#endif 45#endif
43#endif 46#endif
44 47
48#include "../toxcore/ccompat.h"
49
45// You are responsible for freeing the return value! 50// You are responsible for freeing the return value!
46uint8_t *hex_string_to_bin(const char *hex_string) 51uint8_t *hex_string_to_bin(const char *hex_string)
47{ 52{
@@ -111,3 +116,5 @@ int cmdline_parsefor_ipv46(int argc, char **argv, uint8_t *ipv6enabled)
111 116
112 return argvoffset; 117 return argvoffset;
113} 118}
119
120#endif // MISC_TOOLS_C