~scarneiro/ubuntu/raring/adns/fix-for-ignored-make-clean-errors

« back to all changes in this revision

Viewing changes to client/adnslogres.c

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Eckenfels
  • Date: 2001-06-29 06:30:29 UTC
  • Revision ID: james.westby@ubuntu.com-20010629063029-zvsk3uv9gphwwr9h
Tags: 1.0-6
* fixed another architecture regression problem (Closes bug: #101116)
* added debhelper build depends
* removed dh_suidregister
* removed INSTALL doc file (make lintian and policy happy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
    }
116
116
  }
117
117
  sprintf(buf, "%.*s.%.*s.%.*s.%.*s.in-addr.arpa.",
118
 
          ptrs[4]-ptrs[3]-1, ptrs[3],
119
 
          ptrs[3]-ptrs[2]-1, ptrs[2],
120
 
          ptrs[2]-ptrs[1]-1, ptrs[1],
121
 
          ptrs[1]-ptrs[0]-1, ptrs[0]);
 
118
          (int)(ptrs[4]-ptrs[3]-1), ptrs[3],
 
119
          (int)(ptrs[3]-ptrs[2]-1), ptrs[2],
 
120
          (int)(ptrs[2]-ptrs[1]-1), ptrs[1],
 
121
          (int)(ptrs[1]-ptrs[0]-1), ptrs[0]);
122
122
  *addr= ptrs[0];
123
123
  *rest= ptrs[4]-1;
124
124
  return buf;
126
126
 
127
127
static void printline(FILE *outf, char *start, char *addr, char *rest, char *domain) {
128
128
  if (domain)
129
 
    fprintf(outf, "%.*s%s%s", addr - start, start, domain, rest);
 
129
    fprintf(outf, "%.*s%s%s", (int)(addr - start), start, domain, rest);
130
130
  else
131
131
    fputs(start, outf);
132
132
  if (ferror(outf)) aargh("write output");