1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-05 16:04:45 +00:00

Reformat all C source files with Clang-format in Google style w/ 100 col width.

This commit is contained in:
Nick Briggs
2017-05-28 18:08:18 -07:00
parent 691645d048
commit 156c3292f8
167 changed files with 40520 additions and 48069 deletions

18
src/timeoday.c Executable file → Normal file
View File

@@ -1,7 +1,7 @@
/* $Id: timeoday.c,v 1.2 1999/01/03 02:07:37 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */
/* $Id: timeoday.c,v 1.2 1999/01/03 02:07:37 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved
*/
static char *id = "$Id: timeoday.c,v 1.2 1999/01/03 02:07:37 sybalsky Exp $ Copyright (C) Venue";
/************************************************************************/
/* */
/* (C) Copyright 1989-95 Venue. All Rights Reserved. */
@@ -16,16 +16,14 @@ static char *id = "$Id: timeoday.c,v 1.2 1999/01/03 02:07:37 sybalsky Exp $ Copy
#include "version.h"
#include <sys/time.h>
#include <sys/resource.h>
gettimeofday(time, ptr)
struct timeval *time;
int ptr;
gettimeofday(time, ptr) struct timeval *time;
int ptr;
{
struct rusage stats;
getrusage(RUSAGE_SELF, &stats);
time->tv_sec = stats.ru_utime.tv_sec;
time->tv_usec = stats.ru_utime.tv_usec;
struct rusage stats;
getrusage(RUSAGE_SELF, &stats);
time->tv_sec = stats.ru_utime.tv_sec;
time->tv_usec = stats.ru_utime.tv_usec;
}