ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/uucheck.c
(Generate patch)

Comparing Convert-UUlib/uulib/uucheck.c (file contents):
Revision 1.10 by root, Sun Dec 10 16:44:00 2006 UTC vs.
Revision 1.11 by root, Sat Dec 16 22:53:30 2006 UTC

51#include <uudeview.h> 51#include <uudeview.h>
52#include <uuint.h> 52#include <uuint.h>
53#include <fptools.h> 53#include <fptools.h>
54#include <uustring.h> 54#include <uustring.h>
55 55
56char * uucheck_id = "$Id: uucheck.c,v 1.10 2006/12/10 16:44:00 root Exp $"; 56char * uucheck_id = "$Id: uucheck.c,v 1.11 2006/12/16 22:53:30 root Exp $";
57 57
58/* 58/*
59 * Arbitrary number. This is the maximum number of part numbers we 59 * Arbitrary number. This is the maximum number of part numbers we
60 * store for our have-parts and missing-parts lists 60 * store for our have-parts and missing-parts lists
61 */ 61 */
1189 1189
1190 if ((unew = (uulist *) malloc (sizeof (uulist))) == NULL) { 1190 if ((unew = (uulist *) malloc (sizeof (uulist))) == NULL) {
1191 return UURET_NOMEM; 1191 return UURET_NOMEM;
1192 } 1192 }
1193 1193
1194 {
1195 static uulist uulist_new;
1196 *unew = uulist_new; /* zero-initialise the structure */
1197 }
1198
1194 if ((unew->subfname = _FP_strdup (data->subfname)) == NULL) { 1199 if ((unew->subfname = _FP_strdup (data->subfname)) == NULL) {
1195 _FP_free (unew); 1200 _FP_free (unew);
1196 return UURET_NOMEM; 1201 return UURET_NOMEM;
1197 } 1202 }
1198 1203
1226 return UURET_NOMEM; 1231 return UURET_NOMEM;
1227 } 1232 }
1228 } 1233 }
1229 else 1234 else
1230 unew->mimetype = NULL; 1235 unew->mimetype = NULL;
1231
1232 {
1233 static uulist uulist_new;
1234 *unew = uulist_new; /* zero-initialise the structure */
1235 }
1236 1236
1237 unew->state = UUFILE_READ; 1237 unew->state = UUFILE_READ;
1238 unew->thisfile = data; 1238 unew->thisfile = data;
1239 unew->mode = data->data->mode; 1239 unew->mode = data->data->mode;
1240 unew->uudet = data->data->uudet; 1240 unew->uudet = data->data->uudet;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines