mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 06:29:59 +00:00
Squelch warning and delete extra space.
llvm-svn: 8685
This commit is contained in:
parent
12fd3ebd72
commit
29af701f5b
@ -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…
Reference in New Issue
Block a user