]> git.ozlabs.org Git - ppp.git/commitdiff
fix put_char for big-endian archs
authorPaul Mackerras <paulus@samba.org>
Mon, 1 May 1995 04:14:51 +0000 (04:14 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 1 May 1995 04:14:51 +0000 (04:14 +0000)
chat/chat.c

index 62e18f0154ab70ebe49360f987c944e5aa484d70..208fc440dcfa9e427507a22bf21d4eb2e1c4b807 100644 (file)
@@ -18,7 +18,7 @@
  *             (614)451-1883
  */
 
  *             (614)451-1883
  */
 
-static char rcsid[] = "$Id: chat.c,v 1.6 1995/04/28 06:21:50 paulus Exp $";
+static char rcsid[] = "$Id: chat.c,v 1.7 1995/05/01 04:14:51 paulus Exp $";
 
 #include <stdio.h>
 #include <fcntl.h>
 
 #include <stdio.h>
 #include <fcntl.h>
@@ -821,10 +821,11 @@ int put_char(c)
 int c;
     {
     int status;
 int c;
     {
     int status;
+    char ch = c;
 
     delay();
 
 
     delay();
 
-    status = write(1, &c, 1);
+    status = write(1, &ch, 1);
 
     switch (status)
        {
 
     switch (status)
        {