comparison src/getloadavg.c @ 5936:574f0cded429 cygwin

try to replace all nnnL or nnnUL constants with EMACS_[U]INT
author Henry Thompson <ht@markup.co.uk>
date Sun, 13 Dec 2015 13:22:58 +0000
parents 1f0b15040456
children
comparison
equal deleted inserted replaced
5935:d5eb0914ca1f 5936:574f0cded429
595 /* If we can, get the load average values. */ 595 /* If we can, get the load average values. */
596 if (offset && getloadavg_initialized) 596 if (offset && getloadavg_initialized)
597 { 597 {
598 /* Try to read the load. */ 598 /* Try to read the load. */
599 # ifndef SUNOS_5 599 # ifndef SUNOS_5
600 if (lseek (channel, offset, 0) == -1L 600 if (lseek (channel, offset, 0) == -E1
601 || retry_read (channel, (char *) load_ave, sizeof (load_ave)) 601 || retry_read (channel, (char *) load_ave, sizeof (load_ave))
602 != sizeof (load_ave)) 602 != sizeof (load_ave))
603 { 603 {
604 retry_close (channel); 604 retry_close (channel);
605 getloadavg_initialized = 0; 605 getloadavg_initialized = 0;