diff options
author | Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> | 2018-07-07 20:22:25 -0300 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2018-07-11 15:37:32 +0300 |
commit | d0f8fc9c88cbeec01486477007effc3b7914a8be (patch) | |
tree | fbb25b49aa405a71ef12e06833198bd775e6e2ad /lib/intel_mmio.c | |
parent | be9296a1e1e4d288d4baee3aba89480f007dea6c (diff) |
Remove parameter aliases with another argument
This commit fixes the following GCC warning:
warning: passing argument 2 to restrict-qualified parameter aliases with
argument 1 [-Wrestrict]
return (readlink (buf, buf, sizeof (buf)) != -1 &&
This commit fixes the GCC warning by creating a second buffer only to
keep the path.
v2: make pathname smaller (A. Hiler)
Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Acked-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'lib/intel_mmio.c')
0 files changed, 0 insertions, 0 deletions