summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/alpha/osf_getrusage.c
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2020-02-11 13:16:14 -0800
committerAlistair Francis <alistair.francis@wdc.com>2020-04-02 09:21:06 -0700
commit0bcd0c5100f5268b04b7b4dbbea63eb2c50e9132 (patch)
tree84c04949834c1b2985b16d39f1642083ebb90fb7 /sysdeps/unix/sysv/linux/alpha/osf_getrusage.c
parent600f00b747ff42eb0aa778536d3ef602e8bcd550 (diff)
downloadglibc-0bcd0c5100f5268b04b7b4dbbea63eb2c50e9132.tar.gz
glibc-0bcd0c5100f5268b04b7b4dbbea63eb2c50e9132.tar.xz
glibc-0bcd0c5100f5268b04b7b4dbbea63eb2c50e9132.zip
sysv/alpha: Use generic __timeval32 and helpers
Now there is a generic __timeval32 and helpers we can use them for Alpha
instead of the Alpha specific ones.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/alpha/osf_getrusage.c')
-rw-r--r--sysdeps/unix/sysv/linux/alpha/osf_getrusage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/osf_getrusage.c b/sysdeps/unix/sysv/linux/alpha/osf_getrusage.c
index be81994654..95cedb0cf6 100644
--- a/sysdeps/unix/sysv/linux/alpha/osf_getrusage.c
+++ b/sysdeps/unix/sysv/linux/alpha/osf_getrusage.c
@@ -22,16 +22,16 @@
 
 #include <sys/time.h>
 #include <sys/resource.h>
-#include <alpha-tv32-compat.h>
+#include <tv32-compat.h>
 
 int
-__getrusage_tv32 (int who, struct rusage32 *usage32)
+__getrusage_tv32 (int who, struct __rusage32 *usage32)
 {
-  struct rusage usage64;
-  if (__getrusage (who, &usage64) == -1)
+  struct rusage usage;
+  if (__getrusage (who, &usage) == -1)
     return -1;
 
-  alpha_rusage64_to_rusage32 (usage32, &usage64);
+  rusage64_to_rusage32 (&usage, usage32);
   return 0;
 }