~logan/ubuntu/trusty/pinentry/0.8.3-1ubuntu1

« back to all changes in this revision

Viewing changes to assuan/assuan-buffer.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut
  • Date: 2005-01-27 19:10:07 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050127191007-83ptn4mcw63mu085
Tags: 0.7.2-1
* New upstream release
* Added new -gtk2 flavor.
* Build dependencies revised accordingly.
* Added more copyright holders to debian/copyright.
* Removed compatibility symlinks.
* Converted to CDBS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
/* read an entire line */
73
73
static int
74
 
readline (int fd, char *buf, size_t buflen, int *r_nread, int *eof)
 
74
readline (int fd, char *buf, size_t buflen, int *r_nread, int *iseof)
75
75
{
76
 
  size_t nleft = buflen;
77
 
  char *p;
 
76
  size_t nleft = buflen; char *p;
78
77
 
79
 
  *eof = 0;
 
78
  *iseof = 0;
80
79
  *r_nread = 0;
81
80
  while (nleft > 0)
82
81
    {
93
92
        }
94
93
      else if (!n)
95
94
        {
96
 
          *eof = 1;
 
95
          *iseof = 1;
97
96
          break; /* allow incomplete lines */
98
97
        }
99
98
      p = buf;