summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2012-01-22 11:46:39 (GMT)
committer Jaromil <jaromil@dyne.org>2012-01-22 11:46:39 (GMT)
commitf1b0539d53a378dd74caaa7f37d94fb0bee193b4 (patch)
treeaca3e5af9e0104d8bed66a5276a23e23ec1ce8e2
parentbf97fba2e1819cea9b0bfc9bf6bcddad9e7afc45 (diff)
fixed some warnings by changing size_t to unsigned int
-rw-r--r--src/avremote.c8
-rw-r--r--src/avremote.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/avremote.c b/src/avremote.c
index ab00c29..0524834 100644
--- a/src/avremote.c
+++ b/src/avremote.c
@@ -130,7 +130,7 @@ void render_uri_meta(upnp_t *upnp, char *path) {
char dir[1024], *pdir;
char file[1024], *pfile;
char url[1024];
- size_t filesize;
+ unsigned int filesize;
// TODO: streams
@@ -152,7 +152,7 @@ void render_uri_meta(upnp_t *upnp, char *path) {
snprintf(upnp->meta,MAX_META_SIZE-1,UPNP_META_FORMAT, url,
- pfile, pdir, pfile, filesize, url);
+ pfile, pdir, pfile, filesize, url);
}
@@ -214,9 +214,9 @@ int recv_upnp(upnp_t *upnp, int timeout) {
}
int print_upnp(upnp_t *upnp) {
- fprintf(stderr,"header (%u bytes):\n",upnp->hdrlen);
+ fprintf(stderr,"header (%u bytes):\n", upnp->hdrlen);
fprintf(stdout,"%s\n\n", upnp->hdr);
- fprintf(stderr,"message (%u bytes):\n",upnp->msglen);
+ fprintf(stderr,"message (%u bytes):\n", upnp->msglen);
fprintf(stdout,"%s\n\n", upnp->msg);
}
diff --git a/src/avremote.h b/src/avremote.h
index cee5155..5bfd06a 100644
--- a/src/avremote.h
+++ b/src/avremote.h
@@ -37,13 +37,13 @@ typedef struct {
int sockfd;
char *hdr;
- size_t hdrlen;
+ unsigned int hdrlen;
char *msg;
- size_t msglen;
+ unsigned int msglen;
char *res;
- size_t reslen;
+ unsigned int reslen;
char *meta;