2010-11-10 21:00:53 +01:00
|
|
|
Index: loadparts.cpp
|
|
|
|
===================================================================
|
|
|
|
--- loadparts.cpp.orig
|
2007-01-16 00:08:11 +01:00
|
|
|
+++ loadparts.cpp
|
2010-11-10 21:00:53 +01:00
|
|
|
@@ -245,7 +245,7 @@ bool parts::loadfile(const char *str)
|
2007-01-16 00:08:11 +01:00
|
|
|
|
|
|
|
while ('\\' == line[l-1]) {
|
|
|
|
// concat next line(s)
|
|
|
|
- int bufsize = clamp(0U, sizeof(line)-l, sizeof(line)-1);
|
|
|
|
+ int bufsize = clamp(0U, (unsigned int)(sizeof(line)-l), (unsigned int)(sizeof(line)-1));
|
|
|
|
fgets(&line[l-2], bufsize, fp);
|
|
|
|
if (feof((FILE*)fp)) break;
|
|
|
|
l = strlen(line);
|
2010-11-10 21:00:53 +01:00
|
|
|
Index: main.cpp
|
|
|
|
===================================================================
|
|
|
|
--- main.cpp.orig
|
2007-01-16 00:08:11 +01:00
|
|
|
+++ main.cpp
|
2010-11-10 21:00:53 +01:00
|
|
|
@@ -179,7 +179,7 @@ int main(int argc, char** argv) {
|
2007-01-16 00:08:11 +01:00
|
|
|
switch (c) {
|
|
|
|
case 'h':
|
|
|
|
// brief help
|
|
|
|
- printf("csmash [-s] [ip-address]");
|
|
|
|
+ puts("csmash [-s] [ip-address]");
|
|
|
|
return 0;
|
|
|
|
case 's':
|
|
|
|
// Server mode
|
2010-11-10 21:00:53 +01:00
|
|
|
Index: matrix
|
|
|
|
===================================================================
|
|
|
|
--- matrix.orig
|
2007-01-16 00:08:11 +01:00
|
|
|
+++ matrix
|
|
|
|
@@ -42,7 +42,7 @@
|
|
|
|
|
|
|
|
/* __BEGIN__BEGIN__ */
|
|
|
|
//__NAMESPACE_BEGIN(ese);
|
|
|
|
-#if (!defined __GNUG__) || (__GNUC__ == 3)
|
|
|
|
+#if (!defined __GNUG__) || (__GNUC__ >= 3)
|
|
|
|
template<typename T>
|
|
|
|
void swap(T& a, T& b)
|
|
|
|
{
|