X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fzip-reader.h;h=6277b768e041939659d9b9185c23eb46be7f754e;hb=d97c0f1ed2858c48173c023964cec8234b5bc831;hp=ccb1ef39f1bd25d3e5cf9b34f2135e9675d20387;hpb=e2da62d735c597afeef2e0e9b36e5a4a83d7da94;p=pspp diff --git a/src/libpspp/zip-reader.h b/src/libpspp/zip-reader.h index ccb1ef39f1..6277b768e0 100644 --- a/src/libpspp/zip-reader.h +++ b/src/libpspp/zip-reader.h @@ -43,7 +43,8 @@ struct zip_member size_t bytes_unread; /* Number of bytes left in the member available for reading */ int ref_cnt; - struct string *errs; + struct string *errmsgs; /* A string to hold error messages. + This string is NOT owned by this object. */ void *aux; }; @@ -69,7 +70,7 @@ void zip_reader_destroy (struct zip_reader *zr); /* Return the zip member in the reader ZR, called MEMBER */ struct zip_member *zip_member_open (struct zip_reader *zr, const char *member); -/* Read upto N bytes from ZM, storing them in BUF. +/* Read up to N bytes from ZM, storing them in BUF. Returns the number of bytes read, or -1 on error */ int zip_member_read (struct zip_member *zm, void *buf, size_t n);