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

Commit

Permalink
Make getHostByName take const char* for consistency with underlying C…
Browse files Browse the repository at this point in the history
…C3k API.
  • Loading branch information
tdicola committed Jun 9, 2015
1 parent e974e19 commit 294d8bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Adafruit_CC3000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ uint16_t Adafruit_CC3000::ping(uint32_t ip, uint8_t attempts, uint16_t timeout,
#endif

#ifndef CC3000_TINY_DRIVER
uint16_t Adafruit_CC3000::getHostByName(char *hostname, uint32_t *ip) {
uint16_t Adafruit_CC3000::getHostByName(const char *hostname, uint32_t *ip) {
if (!_initialised) return 0;
if (!cc3000Bitset.test(CC3000BitSet::IsConnected)) return 0;
if (!cc3000Bitset.test(CC3000BitSet::HasDHCP)) return 0;
Expand Down
2 changes: 1 addition & 1 deletion Adafruit_CC3000.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class Adafruit_CC3000 {


uint16_t ping(uint32_t ip, uint8_t attempts=3, uint16_t timeout=500, uint8_t size=32);
uint16_t getHostByName(char *hostname, uint32_t *ip);
uint16_t getHostByName(const char *hostname, uint32_t *ip);
#endif

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

0 comments on commit 294d8bd

Please sign in to comment.