[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11097 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11097 - gnunet/src/util |
Date: |
Wed, 28 Apr 2010 15:43:19 +0200 |
Author: grothoff
Date: 2010-04-28 15:43:19 +0200 (Wed, 28 Apr 2010)
New Revision: 11097
Modified:
gnunet/src/util/os_priority.c
gnunet/src/util/strings.c
Log:
fixing warnings on OS X
Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c 2010-04-28 13:29:30 UTC (rev 11096)
+++ gnunet/src/util/os_priority.c 2010-04-28 13:43:19 UTC (rev 11097)
@@ -62,8 +62,6 @@
enum GNUNET_SCHEDULER_Priority prio)
{
int rprio = 0;
- int have;
- int delta;
GNUNET_assert (prio < GNUNET_SCHEDULER_PRIORITY_COUNT);
if (prio == GNUNET_SCHEDULER_PRIORITY_KEEP)
@@ -118,12 +116,12 @@
/* Set process priority */
#ifdef MINGW
SetPriorityClass (GetCurrentProcess (), rprio);
-#elif LINUX
+#elif LINUX
if ( (0 == proc) ||
(proc == getpid () ) )
{
- have = nice (0);
- delta = rprio - have;
+ int have = nice (0);
+ int delta = rprio - have;
errno = 0;
if ( (delta != 0) &&
(rprio == nice (delta)) &&
Modified: gnunet/src/util/strings.c
===================================================================
--- gnunet/src/util/strings.c 2010-04-28 13:29:30 UTC (rev 11096)
+++ gnunet/src/util/strings.c 2010-04-28 13:43:19 UTC (rev 11097)
@@ -199,7 +199,7 @@
itmp = tmp;
finSize = tmpSize;
if (iconv (cd,
-#if FREEBSD
+#if FREEBSD || DARWIN
(const char **) &input,
#else
(char **) &input,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11097 - gnunet/src/util,
gnunet <=