summaryrefslogtreecommitdiff
blob: baf26c03c4f4696941d087dde13b48b088fcc908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- a/mepl.c
+++ b/mepl.c
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #define VERSION "0.45 Don Nov 25 19:13:58 CET 1999"
 /*  Version: @(#) mepl.c 0.45
     Autor: Frank Holtz <frank@hof-berlin.de>
@@ -18,11 +19,12 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 #include <fcntl.h>
-// #include <signal.h> #If you have problems to compile remove the "//"
+#include <signal.h>
 #include <stdio.h>
 #include <string.h>
 #include <sys/time.h>
 #include <sys/types.h>
+#include <sys/wait.h>
 #include <termios.h>
 #include <time.h>
 #include <unistd.h>
@@ -93,7 +95,7 @@
 int hex(unsigned char *);
 int fget(int);
 
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
  int   i,z,j,k,error,errz,ic,resin,resout,n,pid,opt;
  struct termios oldtio,newtio;
@@ -346,7 +348,7 @@
  errz=0; 
  do {
  error=0;
- resout=open(resdat,O_WRONLY | O_TRUNC | O_CREAT); /* In Datei zwischenspeichern */
+ resout=open(resdat,O_WRONLY | O_TRUNC | O_CREAT,0600); /* In Datei zwischenspeichern */
  sendstr(ATSENDMEM);
  line[2]=0;
  /* Erstes Zeichen suchen */