Diff for /embedaddon/mtr/ui/cmdpipe.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2021/03/17 00:07:30 version 1.1.1.3, 2023/09/27 11:18:58
Line 231  void execute_packet_child( Line 231  void execute_packet_child(
      */       */
     execlp(mtr_packet_path, "mtr-packet", (char *) NULL);      execlp(mtr_packet_path, "mtr-packet", (char *) NULL);
   
    /*     /*
       Then try to find it where WE were executed from.         Then try to find it where WE were executed from.
      */       */
     strncpy (buf, myname, 240);      strncpy (buf, myname, 240);
     strcat (buf, "-packet");      strcat (buf, "-packet");
Line 355  void construct_base_command( Line 355  void construct_base_command(
     const char *local_ip_type;      const char *local_ip_type;
     const char *protocol = NULL;      const char *protocol = NULL;
   
    /*  Conver the remote IP address to a string  */    /*  Convert the remote IP address to a string  */
     if (inet_ntop(ctl->af, address, ip_string, INET6_ADDRSTRLEN) == NULL) {      if (inet_ntop(ctl->af, address, ip_string, INET6_ADDRSTRLEN) == NULL) {
   
         display_close(ctl);          display_close(ctl);
Line 742  void consume_reply_buffer( Line 742  void consume_reply_buffer(
   
     /*      /*
        We may have multiple completed replies.  Loop until we don't         We may have multiple completed replies.  Loop until we don't
       have any more newlines termininating replies.       have any more newlines terminating replies.
      */       */
     while (true) {      while (true) {
         /*  If no newline is found, our reply isn't yet complete  */          /*  If no newline is found, our reply isn't yet complete  */
Line 803  void handle_command_replies( Line 803  void handle_command_replies(
     reply_buffer = cmdpipe->reply_buffer;      reply_buffer = cmdpipe->reply_buffer;
   
     /*      /*
       Read the available reply text, up to the the remaining       Read the available reply text, up to the remaining
        buffer space.  (Minus one for the terminating NUL.)         buffer space.  (Minus one for the terminating NUL.)
      */       */
     read_buffer = &reply_buffer[cmdpipe->reply_buffer_used];      read_buffer = &reply_buffer[cmdpipe->reply_buffer_used];

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>