aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2006-07-17 21:46:32 +0000
committerWarren Dukes <warren.dukes@gmail.com>2006-07-17 21:46:32 +0000
commit0bf396d610a78a16e49fe72f9ba4aa9a49a6053c (patch)
tree256510d9881995736292afa522a3c38b7d2aee20 /src/interface.c
parent7fdcd56a99f4c302d0e56c68e9c9db22d59b31b5 (diff)
downloadmpd-0bf396d610a78a16e49fe72f9ba4aa9a49a6053c.tar.gz
mpd-0bf396d610a78a16e49fe72f9ba4aa9a49a6053c.tar.xz
mpd-0bf396d610a78a16e49fe72f9ba4aa9a49a6053c.zip
some quick hacks to avoid signedness warnings with gcc4
git-svn-id: https://svn.musicpd.org/mpd/trunk@4387 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface.c b/src/interface.c
index c7efbe032..40d1876b3 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -68,7 +68,7 @@ typedef struct _Interface {
int fd; /* file descriptor */
FILE * fp; /* file pointer */
int open; /* open/used */
- unsigned int permission;
+ int permission;
time_t lastTime;
List * commandList; /* for when in list mode */
int commandListOK; /* print OK after each command execution */
@@ -116,7 +116,7 @@ static void openInterface(Interface * interface, int fd) {
#ifdef SO_SNDBUF
{
int getSize;
- int sockOptLen = sizeof(int);
+ unsigned int sockOptLen = sizeof(int);
if(getsockopt(interface->fd,SOL_SOCKET,SO_SNDBUF,
(char *)&getSize,&sockOptLen) < 0)