From 40ee49bad468402fa7242801979a392152a039c6 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Tue, 1 Jun 2010 01:58:17 +0200 Subject: Fix timeserver API We want to keep the server pointer constant. --- include/timeserver.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') 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); }; -- cgit v1.2.3