Commit ea8fc81d authored by John Zimmermann's avatar John Zimmermann Committed by David Redondo
Browse files

Use lld instead of Ld as format specifier

The C Standard uses L for conversion to long doubles,
ll should be used for conversion to long long int's

BUG: 418142


(cherry picked from commit 9b7f3d49)
parent fa3cdaa0
......@@ -161,7 +161,7 @@ bool ProcessesLocal::Private::readProcStatus(const QString &dir, Process *proces
qlonglong euid;
qlonglong suid;
qlonglong fsuid;
sscanf(mBuffer + sizeof("Uid:") -1, "%Ld %Ld %Ld %Ld", &uid, &euid, &suid, &fsuid);
sscanf(mBuffer + sizeof("Uid:") -1, "%lld %lld %lld %lld", &uid, &euid, &suid, &fsuid);
process->setUid(uid);
process->setEuid(euid);
process->setSuid(suid);
......@@ -172,7 +172,7 @@ bool ProcessesLocal::Private::readProcStatus(const QString &dir, Process *proces
case 'G':
if((unsigned int)size > sizeof("Gid:") && qstrncmp(mBuffer, "Gid:", sizeof("Gid:")-1) == 0) {
qlonglong gid, egid, sgid, fsgid;
sscanf(mBuffer + sizeof("Gid:")-1, "%Ld %Ld %Ld %Ld", &gid, &egid, &sgid, &fsgid);
sscanf(mBuffer + sizeof("Gid:")-1, "%lld %lld %lld %lld", &gid, &egid, &sgid, &fsgid);
process->setGid(gid);
process->setEgid(egid);
process->setSgid(sgid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment