Группа :: Сети/WWW
Пакет: hammerhead
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: hammerhead-2.3.1-alt-gcc4.4_fix.patch
Скачать
Скачать
Fix errors when building with GCC 4.4
--- ./src/cmdline.cc
+++ ./src/cmdline.cc
@@ -14,6 +14,7 @@
#include <unistd.h>
#include <stdlib.h>
+#include <stdio.h>
#ifdef Linux
#include <getopt.h>
#endif
--- ./src/config.cc
+++ ./src/config.cc
@@ -85,14 +85,13 @@ int LogLevel = 0;
int ParseIPNumber(const char *a, int *al, int *ah)
{
- char *dash;
+ const char *dash;
if (!a || !al || !ah) return -1;
if (a[0] == '*') {
*al = 1, *ah = 254;
} else if ( (dash = strchr(a, '-' )) != NULL) {
- *dash = '\0';
*al = atoi(a);
*ah = atoi(dash+1);
} else {