Fixed converting the port number in the "connect from..." log message of SVDRP

This commit is contained in:
Klaus Schmidinger 2006-08-12 09:12:34 +02:00
parent f413879936
commit 9e6b12aa20
4 changed files with 10 additions and 4 deletions

View File

@ -1621,6 +1621,7 @@ Ville Skytt
for fixing several spelling errors
for reporting that the call to pthread_setschedparam(childTid, SCHED_RR, 0) in
thread.c caused a compiler warning with g++ 4.1.1
for fixing converting the port number in the "connect from..." log message of SVDRP
Steffen Beyer <cpunk@reactor.de>
for fixing setting the colored button help after deleting a recording in case the next

View File

@ -4858,3 +4858,8 @@ Video Disk Recorder Revision History
a negative number of minutes (reported by Udo Richter).
- Fixed getting the next active timer when shutting down (thanks to Udo Richter).
- Modified the cSVDRP::Close() function to avoid code duplication.
2006-08-12: Version 1.4.1-4
- Fixed converting the port number in the "connect from..." log message of SVDRP
(thanks to Ville Skyttä).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: config.h 1.264 2006/07/29 09:56:04 kls Exp $
* $Id: config.h 1.265 2006/08/12 09:10:11 kls Exp $
*/
#ifndef __CONFIG_H
@ -21,7 +21,7 @@
// VDR's own version number:
#define VDRVERSION "1.4.1-3"
#define VDRVERSION "1.4.1-4"
#define VDRVERSNUM 10401 // Version * 10000 + Major * 100 + Minor
// The plugin API's version number:

View File

@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
* $Id: svdrp.c 1.99 2006/08/06 09:17:58 kls Exp $
* $Id: svdrp.c 1.100 2006/08/12 09:09:55 kls Exp $
*/
#include "svdrp.h"
@ -120,7 +120,7 @@ int cSocket::Accept(void)
close(newsock);
newsock = -1;
}
isyslog("connect from %s, port %hd - %s", inet_ntoa(clientname.sin_addr), ntohs(clientname.sin_port), accepted ? "accepted" : "DENIED");
isyslog("connect from %s, port %hu - %s", inet_ntoa(clientname.sin_addr), ntohs(clientname.sin_port), accepted ? "accepted" : "DENIED");
}
else if (errno != EINTR && errno != EAGAIN)
LOG_ERROR;