commit | e3e64b8f5456382bbc7dc3dc1f36c30ceaa2ada9 | [log] [tgz] |
---|---|---|
author | Yurii Zubrytskyi <zyy@google.com> | Thu Mar 26 18:16:36 2020 -0700 |
committer | Yurii Zubrytskyi <zyy@google.com> | Thu Mar 26 22:25:46 2020 -0700 |
tree | 01db0e027cde33f115fbfb91ec5e2c66eddccb13 | |
parent | 919678bcbe30643f2092a50b5cdb19265477570f [diff] [blame] |
[adb] generic "cast_handle_to_int" function Now one can use it without platform #ifdefs Bug: 150183149 Test: compiles Change-Id: I6280dcdd2faaff33014f11237d9d04231ac16b82
diff --git a/adb/sysdeps.h b/adb/sysdeps.h index 3e781b8..9a879b5 100644 --- a/adb/sysdeps.h +++ b/adb/sysdeps.h
@@ -665,6 +665,10 @@ return fd.get(); } +static __inline__ int cast_handle_to_int(int fd) { + return fd; +} + // A very simple wrapper over a launched child process class Process { public: