[BACK]Return to utilities.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / telnet

Diff for /src/usr.bin/telnet/utilities.c between version 1.13 and 1.14

version 1.13, 2014/07/20 05:22:02 version 1.14, 2014/07/20 06:39:41
Line 36 
Line 36 
 #define SLC_NAMES  #define SLC_NAMES
   
 #include "telnet_locl.h"  #include "telnet_locl.h"
   
   #include <ctype.h>
 #include <poll.h>  #include <poll.h>
   
 FILE    *NetTrace = 0;          /* Not in bss, since needs to stay */  FILE    *NetTrace = 0;          /* Not in bss, since needs to stay */
Line 47 
Line 49 
  *      Upcase (in place) the argument.   *      Upcase (in place) the argument.
  */   */
   
     void  void
 upcase(argument)  upcase(char *argument)
     char *argument;  
 {  {
     int c;          int c;
   
     while ((c = *argument) != 0) {          while ((c = *argument) != '\0')
         if (islower(c)) {                  *argument++ = toupper((unsigned char)c);
             *argument = toupper(c);  
         }  
         argument++;  
     }  
 }  }
   
 /*  /*
Line 610 
Line 607 
                             break;                              break;
   
                         default:                          default:
                             if (isprint(pointer[i]) && pointer[i] != '"') {                              if (isprint((unsigned char)pointer[i]) &&
                                   pointer[i] != '"') {
                                 if (noquote) {                                  if (noquote) {
                                     putc('"', NetTrace);                                      putc('"', NetTrace);
                                     noquote = 0;                                      noquote = 0;

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14