aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/smp/smp.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-03-22 16:11:39 +0100
committerTobias Brunner <tobias@strongswan.org>2012-03-27 09:10:33 +0200
commitadfd3b992fc4effb81f8ce9268d66117e8c32557 (patch)
tree8e54b0eb5cd946366d399a3dac793a217f7742a0 /src/libcharon/plugins/smp/smp.c
parent008e2df4779d2153b96f2982d21a81abf4b1be93 (diff)
downloadstrongswan-adfd3b992fc4effb81f8ce9268d66117e8c32557.tar.bz2
strongswan-adfd3b992fc4effb81f8ce9268d66117e8c32557.tar.xz
smp: Use proper signed type to get return value of read(2).
Diffstat (limited to 'src/libcharon/plugins/smp/smp.c')
-rw-r--r--src/libcharon/plugins/smp/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/smp/smp.c b/src/libcharon/plugins/smp/smp.c
index 68935aaab..830ed4c8d 100644
--- a/src/libcharon/plugins/smp/smp.c
+++ b/src/libcharon/plugins/smp/smp.c
@@ -627,7 +627,7 @@ static job_requeue_t process(int *fdp)
int fd = *fdp;
bool oldstate;
char buffer[4096];
- size_t len;
+ ssize_t len;
xmlTextReaderPtr reader;
char *id = NULL, *type = NULL;