summaryrefslogtreecommitdiff
path: root/src/tool
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool')
-rw-r--r--src/tool/convert.c4
-rw-r--r--src/tool/itemfrob.c2
-rw-r--r--src/tool/mapfrob.c2
-rw-r--r--src/tool/moneycount/mmo.h5
-rw-r--r--src/tool/skillfrob.c2
5 files changed, 4 insertions, 11 deletions
diff --git a/src/tool/convert.c b/src/tool/convert.c
index 8436ebb..e256fc9 100644
--- a/src/tool/convert.c
+++ b/src/tool/convert.c
@@ -1,8 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
-#define RETCODE "\r\n"
-
#define MAX_INVENTORY 100
#define MAX_CART 100
#define MAX_SKILL 350
@@ -284,7 +282,7 @@ int mmo_char_convert (char *fname1, char *fname2)
if (ret)
{
mmo_char_tostr (line, &char_dat);
- fprintf (ofp, "%s" RETCODE, line);
+ fprintf (ofp, "%s\n", line);
}
}
fcloseall ();
diff --git a/src/tool/itemfrob.c b/src/tool/itemfrob.c
index 646ec73..4651452 100644
--- a/src/tool/itemfrob.c
+++ b/src/tool/itemfrob.c
@@ -35,7 +35,7 @@ int mmo_char_convert ()
{
transform_char (&char_dat);
mmo_char_tostr (line, &char_dat);
- fprintf (ofp, "%s" RETCODE, line);
+ fprintf (ofp, "%s\n", line);
}
}
return 0;
diff --git a/src/tool/mapfrob.c b/src/tool/mapfrob.c
index 11983eb..9dc1a5b 100644
--- a/src/tool/mapfrob.c
+++ b/src/tool/mapfrob.c
@@ -61,7 +61,7 @@ int mmo_char_convert ()
{
transform_char (&char_dat);
mmo_char_tostr (line, &char_dat);
- fprintf (ofp, "%s" RETCODE, line);
+ fprintf (ofp, "%s\n", line);
}
}
return 0;
diff --git a/src/tool/moneycount/mmo.h b/src/tool/moneycount/mmo.h
index c7ab21f..bd62b49 100644
--- a/src/tool/moneycount/mmo.h
+++ b/src/tool/moneycount/mmo.h
@@ -5,11 +5,6 @@
#define _MMO_H_
#include <time.h>
-#ifdef CYGWIN
-#define RETCODE "\r\n" // (CR/LF?FWindows?n)
-#else
-#define RETCODE "\n" // (LF?FUnix?n?j
-#endif
#define FIFOSIZE_SERVERLINK 256*1024
diff --git a/src/tool/skillfrob.c b/src/tool/skillfrob.c
index c7b6bb6..44855ac 100644
--- a/src/tool/skillfrob.c
+++ b/src/tool/skillfrob.c
@@ -39,7 +39,7 @@ int mmo_char_convert ()
{
transform_char (&char_dat);
mmo_char_tostr (line, &char_dat);
- fprintf (ofp, "%s" RETCODE, line);
+ fprintf (ofp, "%s\n", line);
}
}
fcloseall ();