Skip to content
This repository was archived by the owner on Jun 13, 2020. It is now read-only.

Commit 294d8bd

Browse files
committed
Make getHostByName take const char* for consistency with underlying CC3k API.
1 parent e974e19 commit 294d8bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Adafruit_CC3000.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ uint16_t Adafruit_CC3000::ping(uint32_t ip, uint8_t attempts, uint16_t timeout,
11951195
#endif
11961196

11971197
#ifndef CC3000_TINY_DRIVER
1198-
uint16_t Adafruit_CC3000::getHostByName(char *hostname, uint32_t *ip) {
1198+
uint16_t Adafruit_CC3000::getHostByName(const char *hostname, uint32_t *ip) {
11991199
if (!_initialised) return 0;
12001200
if (!cc3000Bitset.test(CC3000BitSet::IsConnected)) return 0;
12011201
if (!cc3000Bitset.test(CC3000BitSet::HasDHCP)) return 0;

Adafruit_CC3000.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class Adafruit_CC3000 {
176176

177177

178178
uint16_t ping(uint32_t ip, uint8_t attempts=3, uint16_t timeout=500, uint8_t size=32);
179-
uint16_t getHostByName(char *hostname, uint32_t *ip);
179+
uint16_t getHostByName(const char *hostname, uint32_t *ip);
180180
#endif
181181

182182
/* Functions that aren't available with the tiny driver */

0 commit comments

Comments
 (0)