… | |
… | |
31 | |
31 | |
32 | #include <stdio.h> |
32 | #include <stdio.h> |
33 | #include <ctype.h> |
33 | #include <ctype.h> |
34 | #include <stdlib.h> |
34 | #include <stdlib.h> |
35 | #include <string.h> |
35 | #include <string.h> |
36 | |
|
|
37 | #ifdef HAVE_MALLOC_H |
|
|
38 | #include <malloc.h> |
36 | #include <errno.h> |
39 | #endif |
37 | |
40 | #ifdef HAVE_UNISTD_H |
38 | #ifdef HAVE_UNISTD_H |
41 | #include <unistd.h> |
39 | #include <unistd.h> |
42 | #endif |
|
|
43 | #ifdef HAVE_MEMORY_H |
|
|
44 | #include <memory.h> |
|
|
45 | #endif |
|
|
46 | #ifdef HAVE_ERRNO_H |
|
|
47 | #include <errno.h> |
|
|
48 | #endif |
40 | #endif |
49 | |
41 | |
50 | #include <uudeview.h> |
42 | #include <uudeview.h> |
51 | #include <uuint.h> |
43 | #include <uuint.h> |
52 | #include <fptools.h> |
44 | #include <fptools.h> |
… | |
… | |
120 | uulist *next; |
112 | uulist *next; |
121 | |
113 | |
122 | while (data) { |
114 | while (data) { |
123 | if (data->binfile != NULL) |
115 | if (data->binfile != NULL) |
124 | if (unlink (data->binfile)) |
116 | if (unlink (data->binfile)) |
125 | UUMessage (uuutil_id, __LINE__, UUMSG_WARNING, |
117 | UUMessage (UUMSG_WARNING, |
126 | uustring (S_TMP_NOT_REMOVED), |
118 | uustring (S_TMP_NOT_REMOVED), |
127 | data->binfile, strerror (errno)); |
119 | data->binfile, strerror (errno)); |
128 | |
120 | |
129 | FP_free (data->filename); |
121 | FP_free (data->filename); |
130 | FP_free (data->subfname); |
122 | FP_free (data->subfname); |
… | |
… | |
438 | last = iter; |
430 | last = iter; |
439 | iter = iter->NEXT; |
431 | iter = iter->NEXT; |
440 | continue; |
432 | continue; |
441 | } |
433 | } |
442 | if ((res = UU_smparts_r (iter, pass)) != NULL) { |
434 | if ((res = UU_smparts_r (iter, pass)) != NULL) { |
443 | UUMessage (uuutil_id, __LINE__, UUMSG_MESSAGE, |
435 | UUMessage (UUMSG_MESSAGE, |
444 | uustring (S_SMERGE_MERGED), |
436 | uustring (S_SMERGE_MERGED), |
445 | (iter->subfname) ? iter->subfname : "", |
437 | (iter->subfname) ? iter->subfname : "", |
446 | (res->subfname) ? res->subfname : "", pass); |
438 | (res->subfname) ? res->subfname : "", pass); |
447 | |
439 | |
448 | temp = iter->NEXT; |
440 | temp = iter->NEXT; |