Raymond Toy pushed to branch issue-130-file-author-in-c at cmucl / cmucl
Commits:
-
818a0d5b
by Raymond Toy at 2022-09-19T18:22:05-07:00
2 changed files:
Changes:
... | ... | @@ -1087,10 +1087,9 @@ optionally keeping some of the most recent old versions." |
1087 | 1087 | (alien:extern-alien "os_file_author"
|
1088 | 1088 | (function (alien:* c-call:c-string) c-call:c-string))
|
1089 | 1089 | (unix::%name->file name)))
|
1090 | - (unless (zerop (sap-int (alien:alien-sap author)))
|
|
1090 | + (unless (alien:null-alien author)
|
|
1091 | 1091 | (alien:cast author c-call:c-string)))
|
1092 | - (when author
|
|
1093 | - (alien:free-alien author)))))))
|
|
1092 | + (alien:free-alien author))))))
|
|
1094 | 1093 | |
1095 | 1094 | |
1096 | 1095 | ;;;; DIRECTORY.
|
... | ... | @@ -774,8 +774,6 @@ os_file_author(const char *path) |
774 | 774 | }
|
775 | 775 | }
|
776 | 776 | exit:
|
777 | - fprintf(stderr, "buffer, initial = %p %p\n", buffer, initial);
|
|
778 | -
|
|
779 | 777 | if (buffer != initial) {
|
780 | 778 | free(buffer);
|
781 | 779 | }
|