mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Squelch warning and delete extra space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8685 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d554ebfcf7
commit
8d2ff13149
@ -277,12 +277,10 @@ bool AddMemberToArchive(string Member, std::ofstream &ArchiveFile) {
|
||||
sprintf(Hdr.gid, "%d", StatBuf.st_gid);
|
||||
|
||||
//file member date in decimal
|
||||
sprintf(Hdr.date,"%d", StatBuf.st_mtime);
|
||||
|
||||
sprintf(Hdr.date,"%d", (int)StatBuf.st_mtime);
|
||||
|
||||
//file member mode in OCTAL
|
||||
sprintf(Hdr.mode,"%d", StatBuf.st_mode);
|
||||
|
||||
|
||||
//add our header trailer
|
||||
memcpy(Hdr.fmag,ARFMAG,sizeof(ARFMAG));
|
||||
@ -290,7 +288,6 @@ bool AddMemberToArchive(string Member, std::ofstream &ArchiveFile) {
|
||||
//write header to archive file
|
||||
ArchiveFile.write((char*)&Hdr, sizeof(Hdr));
|
||||
|
||||
|
||||
//open Member file for reading and copy to buffer
|
||||
int FD = open(Member.c_str(),O_RDONLY);
|
||||
if (FD == -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user