cvsd commit: MODIFIED: . ...
[Date Prev][
Date Next]
[Thread Prev][
Thread Next]
cvsd commit: MODIFIED: . ...
- From: Commits of the cvsd project <cvsd-commits [at] lists.arthurdejong.org>
- To: cvsd-commits [at] lists.arthurdejong.org
- Reply-to: cvsd-users [at] lists.arthurdejong.org
- Subject: cvsd commit: MODIFIED: . ...
- Date: Fri, 11 Oct 2013 16:17:04 +0200
User: arthur
Date: 13/10/11 16:17:04
Modified: . cvsd.c
Log:
fix some compiler warnings (thanks Clang)
Revision Changes Path
1.126 +5 -5 cvsd/cvsd.c
Index: cvsd.c
===================================================================
RCS file: /home/arthur/devel/repos/cvsd/cvsd.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -b -r1.125 -r1.126
--- cvsd.c 4 Mar 2012 10:25:05 -0000 1.125
+++ cvsd.c 11 Oct 2013 14:17:04 -0000 1.126
@@ -15,7 +15,7 @@
Copyright (C) 1999 Chris Black.
Copyright (C) 2000 Philippe Kehl.
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
- 2010, 2011, 2012 Arthur de Jong.
+ 2010, 2011, 2012, 2013 Arthur de Jong.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -382,7 +382,7 @@
/* translate address to name */
switch (i=getnameinfo(addr->ai_addr,addr->ai_addrlen,
host,sizeof(host),serv,sizeof(serv),
- NI_NUMERICHOST|NI_NUMERICSERV)<0)
+ NI_NUMERICHOST|NI_NUMERICSERV))
{
case 0:
log_log(LOG_DEBUG,"debug: binding %s %s family=%d socktype=%d
protocol=%d",host,serv,
@@ -573,7 +573,7 @@
host=hostbuf;
switch (j=getnameinfo((struct sockaddr *)&addr,alen,
host,80,serv,40,
- NI_NUMERICHOST|NI_NUMERICSERV)<0)
+ NI_NUMERICHOST|NI_NUMERICSERV))
{
case 0: break;
case EAI_SYSTEM:
@@ -791,11 +791,11 @@
log_log(LOG_DEBUG,"debug: chroot(%s) done",cfg->rootjail);
}
/* just to be sure */
- chdir("/");
+ (void)chdir("/");
/* renice */
errno=0; /* for strange nice implementations */
- nice(cfg->nice);
+ (void)nice(cfg->nice);
if (errno!=0)
{
log_log(LOG_ERR,"cannot nice(%d): %s",(int)cfg->nice,strerror(errno));
--
To unsubscribe send an email to
cvsd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/cvsd-commits/
- cvsd commit: MODIFIED: . ...,
Commits of the cvsd project