aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-05-20 15:27:14 -0700
committerSan Mehat <san@google.com>2009-05-20 17:16:05 -0700
commitdb017545796747115b8797f03e662b0f398a7c7b (patch)
tree56c78aebe652c2d718a7007381cc3c770eb8ad0d /include
parent2fd9c5897aba37847879033dd1cffd345ced93fc (diff)
downloadsystem_core-db017545796747115b8797f03e662b0f398a7c7b.tar.gz
system_core-db017545796747115b8797f03e662b0f398a7c7b.tar.bz2
system_core-db017545796747115b8797f03e662b0f398a7c7b.zip
libsysutils: const correctness fixes + remove some debugging
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/sysutils/FrameworkClient.h4
-rw-r--r--include/sysutils/SocketClient.h4
-rw-r--r--include/sysutils/SocketListener.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/include/sysutils/FrameworkClient.h b/include/sysutils/FrameworkClient.h
index 1eb112a5..0ef07537 100644
--- a/include/sysutils/FrameworkClient.h
+++ b/include/sysutils/FrameworkClient.h
@@ -13,8 +13,8 @@ public:
FrameworkClient(int sock);
virtual ~FrameworkClient() {}
- int sendMsg(char *msg);
- int sendMsg(char *msg, char *data);
+ int sendMsg(const char *msg);
+ int sendMsg(const char *msg, const char *data);
};
typedef android::List<FrameworkClient *> FrameworkClientCollection;
diff --git a/include/sysutils/SocketClient.h b/include/sysutils/SocketClient.h
index cde64a54..469dd9d0 100644
--- a/include/sysutils/SocketClient.h
+++ b/include/sysutils/SocketClient.h
@@ -15,8 +15,8 @@ public:
int getSocket() { return mSocket; }
- int sendMsg(int code, char *msg, bool addErrno);
- int sendMsg(char *msg);
+ int sendMsg(int code, const char *msg, bool addErrno);
+ int sendMsg(const char *msg);
};
typedef android::List<SocketClient *> SocketClientCollection;
diff --git a/include/sysutils/SocketListener.h b/include/sysutils/SocketListener.h
index 30d050d4..68dcb8f4 100644
--- a/include/sysutils/SocketListener.h
+++ b/include/sysutils/SocketListener.h
@@ -37,8 +37,8 @@ public:
int startListener();
int stopListener();
- void sendBroadcast(int code, char *msg, bool addErrno);
- void sendBroadcast(char *msg);
+ void sendBroadcast(int code, const char *msg, bool addErrno);
+ void sendBroadcast(const char *msg);
protected:
virtual bool onDataAvailable(SocketClient *c) = 0;