summaryrefslogtreecommitdiff
path: root/misc/orville-write/files/patch-wrt_him.c
blob: 7a04c15cc3f0484f8855d735ef9a1588bba57a69 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
--- wrt_him.c.orig	Sun Sep  7 22:57:06 2003
+++ wrt_him.c	Sun Sep  7 22:57:14 2003
@@ -141,7 +141,7 @@
 	    if (mywrt.wrt_last[0] == '\0')
 	    {
 		printf("No previous write or telegram.  Can't repeat\n");
-		log("FAIL: no previous");
+		_log("FAIL: no previous");
 		done(1);
 	    }
 	    strncpy(hisname,mywrt.wrt_last,UT_NAMESIZE);
@@ -170,13 +170,13 @@
 	    else if (rc == 1)
 	    {
 		printf("No such tty\n");
-		log("FAIL: no such tty");
+		_log("FAIL: no such tty");
 		done(1);
 	    }
 	    else
 	    {
 		printf("%s not logged onto %s\n",hisname,histty);
-		log("FAIL: not on tty");
+		_log("FAIL: not on tty");
 		done(1);
 	    }
 	}
@@ -253,7 +253,7 @@
 	/* didn't find any matches, trouble */
 	printf("%s is not logged on\n",hisname);
 	{
-	    log("FAIL: not on");
+	    _log("FAIL: not on");
 	    done(1);
 	}
     }
@@ -300,7 +300,7 @@
 	if (*ut->ut_name == '\0')
 	{
 	    printf("No one logged onto %s\n",histty);
-	    log("FAIL: empty tty");
+	    _log("FAIL: empty tty");
 	    done(1);
 	}
 	strncpy(hisname, ut->ut_name, UT_NAMESIZE);
@@ -344,7 +344,7 @@
     }
 
     printf("You are not being written\n");
-    log("FAIL: not written");
+    _log("FAIL: not written");
     done(0);
 }
 
@@ -444,14 +444,14 @@
 	{
 	    printf("Sorry, no helpers are available right now.\n");
 	    if (f_nohelp) type_help(f_nohelp);
-	    log("FAIL: no helpers");
+	    _log("FAIL: no helpers");
 	}
 	else
 	{
 	    printf("Sorry, all helpers currently available are busy.\n");
 	    if (f_nohelp) type_help(f_nohelp);
 	    printf("Try again later...\n");
-	    log("FAIL: help busy");
+	    _log("FAIL: help busy");
 	}
 	done(0);
     }