--- libaitmqtt/src/cmds.c 2012/05/05 13:10:24 1.1.2.2 +++ libaitmqtt/src/cmds.c 2012/05/08 09:07:31 1.1.2.3 @@ -1,8 +1,10 @@ #include "global.h" -static inline int -_wait4data(int sock, u_short ka, short events) +#pragma GCC visibility push(hidden) + +inline int +mqtt_wait4data(int sock, u_short ka, short events) { int ret = 0; struct pollfd pfd; @@ -22,7 +24,9 @@ _wait4data(int sock, u_short ka, short events) return 0; /* ready */ } +#pragma GCC visibility pop + /* * mqtt_KeepAlive() - Keep Alive check routine * @@ -40,7 +44,7 @@ mqtt_KeepAlive(int sock, u_short ka, u_char tries) if (sock < 3) return -1; /* error */ - if ((ret = _wait4data(sock, ka, POLLOUT))) + if ((ret = mqtt_wait4data(sock, ka, POLLOUT))) return ret; /* ping request */ if ((ret = mqtt_msgPINGREQ(&msg)) == -1) @@ -51,7 +55,7 @@ mqtt_KeepAlive(int sock, u_short ka, u_char tries) } while (tries--) { - if ((ret = _wait4data(sock, ka, POLLIN | POLLPRI))) { + if ((ret = mqtt_wait4data(sock, ka, POLLIN | POLLPRI))) { if (ret == -1) break; else