mescc: Mes C Library: Whitespace fixes.

* lib/linux/signal.c (signal): Whitespace fixes.
* lib/linux/time.c (time): Likewise.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-08-30 11:31:29 +02:00
parent 443f662361
commit c11a721c36
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
3 changed files with 8 additions and 6 deletions

View File

@ -71,7 +71,9 @@ HOWEVER, the function entry already allocated space for locals on the stack (aft
asm ("SYS_exit mov____$i8,%r7");
asm ("swi____$0");
do {
asm ("wfi");
} while (1);
do
{
asm ("wfi");
}
while (1);
}

View File

@ -56,7 +56,7 @@ signal (int signum, sighandler_t action)
I've decided to take the easy way out for now. */
/*setup_action.sa_restorer = _restorer_for_siginfo;*/
bitindex = signum - 1;
itembitcount = 8 * sizeof(setup_action.sa_mask.items[0]);
itembitcount = 8 * sizeof (setup_action.sa_mask.items[0]);
setup_action.sa_mask.items[bitindex / itembitcount] = 1UL << (bitindex % itembitcount);
old.sa_handler = SIG_DFL;
setup_action.sa_flags = SA_RESTART;
@ -64,7 +64,7 @@ signal (int signum, sighandler_t action)
/* Tell kernel that we use a restorer, on penalty of segfault. */
setup_action.sa_flags |= SA_RESTORER;
#endif
int r = _sys_call4 (SYS_rt_sigaction, signum, (long)&setup_action, (long)&old, sizeof (sigset_t));
int r = _sys_call4 (SYS_rt_sigaction, signum, (long) &setup_action, (long) &old, sizeof (sigset_t));
if (r)
return 0;
return old.sa_handler;

View File

@ -36,7 +36,7 @@ time (time_t * result)
struct timeval tv;
struct timezone tz;
if (gettimeofday (&tv, &tz) != 0)
return (time_t) -1;
return (time_t) - 1;
if (result)
*result = tv.tv_sec;
return tv.tv_sec;