CVS patchset: 125
CVS date: 1996/01/05 03:04:32
{
int fd;
char buffer[1024];
+ struct rpmlead lead;
Header hd;
int ct;
}
read(fd, &buffer, RPMLEAD_SIZE);
+ readLead(fd, &lead);
hd = readHeader(fd);
while ((ct = read(fd, &buffer, 1024))) {
int main(int argc, char **argv)
{
int fd;
- char buffer[1024];
+ struct rpmlead lead;
Header hd;
if (argc == 1) {
fd = open(argv[1], O_RDONLY, 0644);
}
- read(fd, &buffer, RPMLEAD_SIZE);
+ readLead(fd, &lead);
hd = readHeader(fd);
writeHeader(1, hd);
int main(int argc, char **argv)
{
int fd;
- char buffer[1024];
+ struct rpmlead lead;
if (argc == 1) {
fd = 0;
fd = open(argv[1], O_RDONLY, 0644);
}
- read(fd, &buffer, RPMLEAD_SIZE);
- write(1, &buffer, RPMLEAD_SIZE);
+ readLead(fd, &lead);
+ writeLead(1, &lead);
return 0;
}