diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-06-01 01:58:17 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-06-01 02:06:09 +0200 |
commit | 40ee49bad468402fa7242801979a392152a039c6 (patch) | |
tree | 2c00bc74a58131f88b8c2c177f8046e4baa81122 /include | |
parent | ec6dc19bbeb4c93e951ba5419ccf6768d5811ae6 (diff) | |
download | connman-40ee49bad468402fa7242801979a392152a039c6.tar.gz connman-40ee49bad468402fa7242801979a392152a039c6.tar.bz2 connman-40ee49bad468402fa7242801979a392152a039c6.zip |
Fix timeserver API
We want to keep the server pointer constant.
Diffstat (limited to 'include')
-rw-r--r-- | include/timeserver.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/timeserver.h b/include/timeserver.h index f1b5c9c8..cb1ac9c9 100644 --- a/include/timeserver.h +++ b/include/timeserver.h @@ -32,15 +32,15 @@ extern "C" { * @short_description: Functions for handling time servers (including NTP) */ -int connman_timeserver_append(char *server); -int connman_timeserver_remove(char *server); +int connman_timeserver_append(const char *server); +int connman_timeserver_remove(const char *server); void connman_timeserver_sync(void); struct connman_timeserver_driver { const char *name; int priority; - int (*append) (char *server); - int (*remove) (char *server); + int (*append) (const char *server); + int (*remove) (const char *server); void (*sync) (void); }; |