times: correct returned type to be clock_t
authorAlan Cox <alan@linux.intel.com>
Fri, 2 Jan 2015 10:09:18 +0000 (10:09 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 2 Jan 2015 10:09:18 +0000 (10:09 +0000)
From: Sergio L. Pascual <https://github.com/slp/FUZIX>

Library/include/sys/times.h

index dbfbf63..4897c87 100644 (file)
@@ -3,11 +3,11 @@
 
 /* User's structure for times() system call */
 struct tms {
-       time_t  tms_utime;
-       time_t  tms_stime;
-       time_t  tms_cutime;
-       time_t  tms_cstime;
-       time_t  tms_etime;      /* Elapsed real time */
+       clock_t tms_utime;
+       clock_t tms_stime;
+       clock_t tms_cutime;
+       clock_t tms_cstime;
+       clock_t tms_etime;      /* Elapsed real time */
 };
 
 extern int times(struct tms *tms);