OSDN Git Service

Fix 64-bit build.
authorNarayan Kamath <narayan@google.com>
Mon, 24 Feb 2014 11:05:02 +0000 (11:05 +0000)
committerNarayan Kamath <narayan@google.com>
Mon, 24 Feb 2014 11:05:02 +0000 (11:05 +0000)
commit37e9570bce0ec5c08eab53935905f1e3a133dea2
treecfe25aecdd5c335ea85f54a8c525f7692a110b7f
parentc6d96bb8673a4f44d84f3beaa5ed4fec1484f0ad
Fix 64-bit build.

A warning about signed vs unsigned comparison was converted
into an error here :

 ...
 struct stat st;
 if (st.st_size > sizeof(prop_area) {
 ...

st_size is either an off64_t, which is a signed type. It's
worth investigating why this didn't trigger a warning on 32 bit,
where it's signed as well.

Change-Id: Ib2622bd5c444ddcfa7fb2141f00332cbb4a0818b
libc/bionic/system_properties.cpp