aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-07-27 22:16:36 +0200
committerPaul Kocialkowski <contact@paulk.fr>2014-07-28 12:14:03 +0200
commit394133a323e2ba2d3f87f5e5e9d9cbbe60b9546d (patch)
treef50457cee0406f7bbea835fd3ba1407ef7549df9 /samsung-ipc
parentdbcd5f77206148c7d446feda48031dde06c480a8 (diff)
downloadexternal_libsamsung-ipc-394133a323e2ba2d3f87f5e5e9d9cbbe60b9546d.zip
external_libsamsung-ipc-394133a323e2ba2d3f87f5e5e9d9cbbe60b9546d.tar.gz
external_libsamsung-ipc-394133a323e2ba2d3f87f5e5e9d9cbbe60b9546d.tar.bz2
GPRS cid count is unsigned integer
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc')
-rw-r--r--samsung-ipc/devices/aries/aries.c6
-rw-r--r--samsung-ipc/devices/crespo/crespo.c4
-rw-r--r--samsung-ipc/devices/xmm626/xmm626_sec_modem.c2
-rw-r--r--samsung-ipc/devices/xmm626/xmm626_sec_modem.h2
-rw-r--r--samsung-ipc/ipc.c10
-rw-r--r--samsung-ipc/ipc.h6
6 files changed, 15 insertions, 15 deletions
diff --git a/samsung-ipc/devices/aries/aries.c b/samsung-ipc/devices/aries/aries.c
index de010c9..99b60c7 100644
--- a/samsung-ipc/devices/aries/aries.c
+++ b/samsung-ipc/devices/aries/aries.c
@@ -706,7 +706,7 @@ int aries_data_destroy(void *transport_data, void *power_data, void *gprs_data)
return 0;
}
-int aries_gprs_activate(void *data, int cid)
+int aries_gprs_activate(void *data, unsigned int cid)
{
int rc;
@@ -717,7 +717,7 @@ int aries_gprs_activate(void *data, int cid)
return 0;
}
-int aries_gprs_deactivate(void *data, int cid)
+int aries_gprs_deactivate(void *data, unsigned int cid)
{
int rc;
@@ -728,7 +728,7 @@ int aries_gprs_deactivate(void *data, int cid)
return 0;
}
-char *aries_gprs_get_iface(int cid)
+char *aries_gprs_get_iface(unsigned int cid)
{
char *iface = NULL;
struct ifreq ifr;
diff --git a/samsung-ipc/devices/crespo/crespo.c b/samsung-ipc/devices/crespo/crespo.c
index 7589137..708a1a3 100644
--- a/samsung-ipc/devices/crespo/crespo.c
+++ b/samsung-ipc/devices/crespo/crespo.c
@@ -470,7 +470,7 @@ int crespo_data_destroy(void *transport_data, void *power_data, void *gprs_data)
return 0;
}
-char *crespo_gprs_get_iface_single(int cid)
+char *crespo_gprs_get_iface_single(unsigned int cid)
{
char *iface = NULL;
@@ -489,7 +489,7 @@ int crespo_gprs_get_capabilities_single(struct ipc_client_gprs_capabilities *cap
return 0;
}
-char *crespo_gprs_get_iface(int cid)
+char *crespo_gprs_get_iface(unsigned int cid)
{
char *iface = NULL;
diff --git a/samsung-ipc/devices/xmm626/xmm626_sec_modem.c b/samsung-ipc/devices/xmm626/xmm626_sec_modem.c
index 5f4d7bf..eedce07 100644
--- a/samsung-ipc/devices/xmm626/xmm626_sec_modem.c
+++ b/samsung-ipc/devices/xmm626/xmm626_sec_modem.c
@@ -476,7 +476,7 @@ int xmm626_sec_modem_poll(int fd, struct timeval *timeout)
return rc;
}
-char *xmm626_sec_modem_gprs_get_iface(int cid)
+char *xmm626_sec_modem_gprs_get_iface(unsigned int cid)
{
char *iface = NULL;
diff --git a/samsung-ipc/devices/xmm626/xmm626_sec_modem.h b/samsung-ipc/devices/xmm626/xmm626_sec_modem.h
index 900ddad..6d4ce12 100644
--- a/samsung-ipc/devices/xmm626/xmm626_sec_modem.h
+++ b/samsung-ipc/devices/xmm626/xmm626_sec_modem.h
@@ -55,7 +55,7 @@ int xmm626_sec_modem_read(int fd, void *buffer, size_t length);
int xmm626_sec_modem_write(int fd, const void *buffer, size_t length);
int xmm626_sec_modem_poll(int fd, struct timeval *timeout);
-char *xmm626_sec_modem_gprs_get_iface(int cid);
+char *xmm626_sec_modem_gprs_get_iface(unsigned int cid);
int xmm626_sec_modem_gprs_get_capabilities(struct ipc_client_gprs_capabilities *capabilities);
#endif
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c
index f019642..5db8f4d 100644
--- a/samsung-ipc/ipc.c
+++ b/samsung-ipc/ipc.c
@@ -265,8 +265,8 @@ int ipc_client_power_handlers_register(struct ipc_client *client,
}
int ipc_client_gprs_handlers_register(struct ipc_client *client,
- int (*gprs_activate)(void *gprs_data, int cid),
- int (*gprs_deactivate)(void *gprs_data, int cid), void *gprs_data)
+ int (*gprs_activate)(void *gprs_data, unsigned int cid),
+ int (*gprs_deactivate)(void *gprs_data, unsigned int cid), void *gprs_data)
{
if (client == NULL || client->handlers == NULL)
return -1;
@@ -382,7 +382,7 @@ int ipc_client_power_off(struct ipc_client *client)
return client->handlers->power_off(client->handlers->power_data);
}
-int ipc_client_gprs_activate(struct ipc_client *client, int cid)
+int ipc_client_gprs_activate(struct ipc_client *client, unsigned int cid)
{
if (client == NULL || client->handlers == NULL || client->handlers->gprs_activate == NULL)
return -1;
@@ -390,7 +390,7 @@ int ipc_client_gprs_activate(struct ipc_client *client, int cid)
return client->handlers->gprs_activate(client->handlers->gprs_data, cid);
}
-int ipc_client_gprs_deactivate(struct ipc_client *client, int cid)
+int ipc_client_gprs_deactivate(struct ipc_client *client, unsigned int cid)
{
if (client == NULL || client->handlers == NULL || client->handlers->gprs_deactivate == NULL)
return -1;
@@ -414,7 +414,7 @@ int ipc_client_data_destroy(struct ipc_client *client)
return client->handlers->data_destroy(client->handlers->transport_data, client->handlers->power_data, client->handlers->power_data);
}
-char *ipc_client_gprs_get_iface(struct ipc_client *client, int cid)
+char *ipc_client_gprs_get_iface(struct ipc_client *client, unsigned int cid)
{
if (client == NULL || client->gprs_specs == NULL || client->gprs_specs->gprs_get_iface == NULL)
return NULL;
diff --git a/samsung-ipc/ipc.h b/samsung-ipc/ipc.h
index b50303e..5808aa1 100644
--- a/samsung-ipc/ipc.h
+++ b/samsung-ipc/ipc.h
@@ -54,8 +54,8 @@ struct ipc_client_handlers {
void *power_data;
/* GPRS handlers */
- int (*gprs_activate)(void *gprs_data, int cid);
- int (*gprs_deactivate)(void *gprs_data, int cid);
+ int (*gprs_activate)(void *gprs_data, unsigned int cid);
+ int (*gprs_deactivate)(void *gprs_data, unsigned int cid);
void *gprs_data;
@@ -65,7 +65,7 @@ struct ipc_client_handlers {
};
struct ipc_client_gprs_specs {
- char *(*gprs_get_iface)(int cid);
+ char *(*gprs_get_iface)(unsigned int cid);
int (*gprs_get_capabilities)(struct ipc_client_gprs_capabilities *capabilities);
};