is: Convert K&R C -> ANSI C
Aditionally this removes all trailing whitespaces using: sed -i 's/[[:space:]]*$//' *.c Change-Id: I274fccee9ec320e474ac26fbe19f3bd50bec271a
This commit is contained in:
parent
6956dd2b51
commit
4aa48abab9
@ -42,8 +42,8 @@ struct hook_entry {
|
||||
/*===========================================================================*
|
||||
* map_unmap_keys *
|
||||
*===========================================================================*/
|
||||
void map_unmap_fkeys(map)
|
||||
int map;
|
||||
void
|
||||
map_unmap_fkeys(int map)
|
||||
{
|
||||
int fkeys, sfkeys;
|
||||
int h, s;
|
||||
|
@ -5,7 +5,8 @@
|
||||
|
||||
static struct data_store noxfer_ds_store[NR_DS_KEYS];
|
||||
|
||||
void data_store_dmp()
|
||||
void
|
||||
data_store_dmp(void)
|
||||
{
|
||||
struct data_store *p;
|
||||
static int prev_i = 0;
|
||||
|
@ -21,7 +21,8 @@ struct dmap dmap[NR_DEVICES];
|
||||
/*===========================================================================*
|
||||
* fproc_dmp *
|
||||
*===========================================================================*/
|
||||
void fproc_dmp()
|
||||
void
|
||||
fproc_dmp(void)
|
||||
{
|
||||
struct fproc *fp;
|
||||
int i, j, nfds, n=0;
|
||||
@ -61,7 +62,8 @@ void fproc_dmp()
|
||||
/*===========================================================================*
|
||||
* dtab_dmp *
|
||||
*===========================================================================*/
|
||||
void dtab_dmp()
|
||||
void
|
||||
dtab_dmp(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -59,7 +59,8 @@ struct boot_image image[NR_BOOT_PROCS];
|
||||
/*===========================================================================*
|
||||
* kmessages_dmp *
|
||||
*===========================================================================*/
|
||||
void kmessages_dmp()
|
||||
void
|
||||
kmessages_dmp(void)
|
||||
{
|
||||
struct kmessages *kmess; /* get copy of kernel messages */
|
||||
static char print_buf[_KMESS_BUF_SIZE+1]; /* this one is used to print */
|
||||
@ -89,7 +90,8 @@ void kmessages_dmp()
|
||||
/*===========================================================================*
|
||||
* monparams_dmp *
|
||||
*===========================================================================*/
|
||||
void monparams_dmp()
|
||||
void
|
||||
monparams_dmp(void)
|
||||
{
|
||||
char val[MULTIBOOT_PARAM_BUF_SIZE];
|
||||
char *e;
|
||||
@ -116,7 +118,8 @@ void monparams_dmp()
|
||||
/*===========================================================================*
|
||||
* irqtab_dmp *
|
||||
*===========================================================================*/
|
||||
void irqtab_dmp()
|
||||
void
|
||||
irqtab_dmp(void)
|
||||
{
|
||||
int i,r;
|
||||
struct irq_hook irq_hooks[NR_IRQ_HOOKS];
|
||||
@ -162,7 +165,8 @@ void irqtab_dmp()
|
||||
/*===========================================================================*
|
||||
* image_dmp *
|
||||
*===========================================================================*/
|
||||
void image_dmp()
|
||||
void
|
||||
image_dmp(void)
|
||||
{
|
||||
int m, r;
|
||||
struct boot_image *ip;
|
||||
@ -184,7 +188,8 @@ void image_dmp()
|
||||
/*===========================================================================*
|
||||
* kenv_dmp *
|
||||
*===========================================================================*/
|
||||
void kenv_dmp()
|
||||
void
|
||||
kenv_dmp(void)
|
||||
{
|
||||
struct kinfo kinfo;
|
||||
struct machine machine;
|
||||
@ -244,7 +249,8 @@ static char *s_traps_str(int flags)
|
||||
/*===========================================================================*
|
||||
* privileges_dmp *
|
||||
*===========================================================================*/
|
||||
void privileges_dmp()
|
||||
void
|
||||
privileges_dmp(void)
|
||||
{
|
||||
register struct proc *rp;
|
||||
static struct proc *oldrp = BEG_PROC_ADDR;
|
||||
@ -349,7 +355,8 @@ void proctab_dmp(void)
|
||||
/*===========================================================================*
|
||||
* procstack_dmp *
|
||||
*===========================================================================*/
|
||||
void procstack_dmp()
|
||||
void
|
||||
procstack_dmp(void)
|
||||
{
|
||||
/* Proc table dump, with stack */
|
||||
|
||||
@ -375,8 +382,8 @@ void procstack_dmp()
|
||||
/*===========================================================================*
|
||||
* proc_name *
|
||||
*===========================================================================*/
|
||||
static char *proc_name(proc_nr)
|
||||
int proc_nr;
|
||||
static char *
|
||||
proc_name(int proc_nr)
|
||||
{
|
||||
struct proc *p;
|
||||
if (proc_nr == ANY) return "ANY";
|
||||
|
@ -37,7 +37,8 @@ static char *flags_str(int flags)
|
||||
return str;
|
||||
}
|
||||
|
||||
void mproc_dmp()
|
||||
void
|
||||
mproc_dmp(void)
|
||||
{
|
||||
struct mproc *mp;
|
||||
int i, n=0;
|
||||
@ -70,7 +71,8 @@ void mproc_dmp()
|
||||
/*===========================================================================*
|
||||
* sigaction_dmp *
|
||||
*===========================================================================*/
|
||||
void sigaction_dmp()
|
||||
void
|
||||
sigaction_dmp(void)
|
||||
{
|
||||
struct mproc *mp;
|
||||
int i, n=0;
|
||||
|
@ -22,7 +22,8 @@ static char *s_flags_str(int flags, int sys_flags);
|
||||
/*===========================================================================*
|
||||
* rproc_dmp *
|
||||
*===========================================================================*/
|
||||
void rproc_dmp()
|
||||
void
|
||||
rproc_dmp(void)
|
||||
{
|
||||
struct rproc *rp;
|
||||
struct rprocpub *rpub;
|
||||
|
@ -51,7 +51,8 @@ static void print_region(struct vm_region_info *vri, int *n)
|
||||
(*n)++;
|
||||
}
|
||||
|
||||
void vm_dmp()
|
||||
void
|
||||
vm_dmp(void)
|
||||
{
|
||||
static struct proc proc[NR_TASKS + NR_PROCS];
|
||||
static struct vm_region_info vri[LINES];
|
||||
|
@ -73,7 +73,8 @@ int main(int argc, char **argv)
|
||||
/*===========================================================================*
|
||||
* sef_local_startup *
|
||||
*===========================================================================*/
|
||||
static void sef_local_startup()
|
||||
static void
|
||||
sef_local_startup(void)
|
||||
{
|
||||
/* Register init callbacks. */
|
||||
sef_setcb_init_fresh(sef_cb_init_fresh);
|
||||
@ -117,7 +118,8 @@ static void sef_cb_signal_handler(int signo)
|
||||
/*===========================================================================*
|
||||
* get_work *
|
||||
*===========================================================================*/
|
||||
static void get_work()
|
||||
static void
|
||||
get_work(void)
|
||||
{
|
||||
int status = 0;
|
||||
status = sef_receive(ANY, &m_in); /* this blocks until message arrives */
|
||||
@ -130,9 +132,11 @@ static void get_work()
|
||||
/*===========================================================================*
|
||||
* reply *
|
||||
*===========================================================================*/
|
||||
static void reply(who, result)
|
||||
int who; /* destination */
|
||||
int result; /* report result to replyee */
|
||||
static void
|
||||
reply(
|
||||
int who, /* destination */
|
||||
int result /* report result to replyee */
|
||||
)
|
||||
{
|
||||
int send_status;
|
||||
m_out.m_type = result; /* build reply message */
|
||||
|
Loading…
x
Reference in New Issue
Block a user