some quick hacks to avoid signedness warnings with gcc4
git-svn-id: https://svn.musicpd.org/mpd/trunk@4387 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user