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

Diff for /src/usr.bin/sendbug/sendbug.c between version 1.39 and 1.40

version 1.39, 2007/04/06 21:51:09 version 1.40, 2007/04/07 00:24:59
Line 33 
Line 33 
 void    dmesg(FILE *);  void    dmesg(FILE *);
 int     editit(char *);  int     editit(char *);
 void    init(void);  void    init(void);
 int     matchline(const char *, const unsigned char *, size_t);  int     matchline(const char *, const char *, size_t);
 int     prompt(void);  int     prompt(void);
 int     send_file(const char *, int);  int     send_file(const char *, int);
 int     sendmail(const char *);  int     sendmail(const char *);
Line 468 
Line 468 
   
 /*  /*
  * Does line start with `s' and end with non-comment and non-whitespace?   * Does line start with `s' and end with non-comment and non-whitespace?
    * Note: Does not treat `line' as a C string.
  */   */
 int  int
 matchline(const char *s, const unsigned char *line, size_t linelen)  matchline(const char *s, const char *line, size_t linelen)
 {  {
         size_t slen;          size_t slen;
         int comment;          int comment;
Line 492 
Line 493 
                                 comment = 0;                                  comment = 0;
                 } else if (*line == '<')                  } else if (*line == '<')
                         comment = 1;                          comment = 1;
                 else if (!isspace(*line))                  else if (!isspace((unsigned char)*line))
                         return (1);                          return (1);
                 ++line;                  ++line;
                 --linelen;                  --linelen;

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40