summaryrefslogtreecommitdiff
path: root/nuttx/sched/getpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/getpid.c')
-rw-r--r--nuttx/sched/getpid.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/sched/getpid.c b/nuttx/sched/getpid.c
index 158b29370..f41467d9f 100644
--- a/nuttx/sched/getpid.c
+++ b/nuttx/sched/getpid.c
@@ -2,7 +2,7 @@
* sched/getpid.c
*
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -40,6 +40,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <sched.h>
+
#include "os_internal.h"
/************************************************************************
@@ -76,9 +77,9 @@
pid_t getpid(void)
{
- /* Return the task ID from the TCB at the head of the
- * ready-to-run task list
- */
+ /* Return the task ID from the TCB at the head of the
+ * ready-to-run task list
+ */
- return ((FAR _TCB*)g_readytorun.head)->pid;
+ return ((FAR _TCB*)g_readytorun.head)->pid;
}