Skip to content
Snippets Groups Projects
Commit c8f4081b authored by Moe Jette's avatar Moe Jette
Browse files

Cosmetic clean-up. No changes in logic.

parent 6faa585f
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
*****************************************************************************
* Copyright (C) 2002 The Regents of the University of California.
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
* Written by moe jette <jette1@llnl.gov>.
* Written by Morris Jette <jette1@llnl.gov>.
* UCRL-CODE-2002-040.
*
* This file is part of SLURM, a resource management program.
......@@ -54,8 +54,6 @@
#include "src/slurmctld/slurmctld.h"
#include "src/slurmd/get_mach_stat.h"
char *get_tmp_fs_name (void);
#if DEBUG_MODULE
/* main is used here for testing purposes only */
int
......@@ -89,7 +87,7 @@ main(int argc, char * argv[])
* Output: procs - filled in with CPU count, "1" if error
* return code - 0 if no error, otherwise errno
*/
int
extern int
get_procs(uint32_t *procs)
{
int my_proc_tally;
......@@ -113,7 +111,7 @@ get_procs(uint32_t *procs)
* Output: os_name - filled in with OS name, "UNKNOWN" if error
* return code - 0 if no error, otherwise errno
*/
int
extern int
get_os_name(char *os_name)
{
int error_code;
......@@ -146,7 +144,7 @@ get_os_name(char *os_name)
* Output: node_name - filled in with node name
* return code - 0 if no error, otherwise errno
*/
int
extern int
get_mach_name(char *node_name)
{
int error_code;
......@@ -165,7 +163,7 @@ get_mach_name(char *node_name)
* Output: real_memory - the Real Memory size in MB, "1" if error
* return code - 0 if no error, otherwise errno
*/
int
extern int
get_memory(uint32_t *real_memory)
{
long pages;
......@@ -198,7 +196,7 @@ get_memory(uint32_t *real_memory)
* Output: procs - filled in with CPU speed, "1.0" if error
* return code - 0 if no error, otherwise errno
*/
int
extern int
get_speed(float *speed)
{
char buffer[128];
......@@ -239,7 +237,7 @@ get_speed(float *speed)
* Output: tmp_disk - filled in with disk space size in MB, zero if error
* return code - 0 if no error, otherwise errno
*/
int
extern int
get_tmp_disk(uint32_t *tmp_disk, char *tmp_fs)
{
struct statfs stat_buf;
......
......@@ -3,7 +3,7 @@
*****************************************************************************
* Copyright (C) 2002 The Regents of the University of California.
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
* Written by Moe Jette <jette1@llnl.gov> et. al.
* Written by Morris Jette <jette1@llnl.gov> et. al.
* UCRL-CODE-2002-040.
*
* This file is part of SLURM, a resource management program.
......@@ -40,17 +40,17 @@
# include <inttypes.h>
#endif /* HAVE_CONFIG_H */
int get_procs(uint32_t *procs);
int get_mach_name(char *node_name);
int get_memory(uint32_t *real_memory);
int get_tmp_disk(uint32_t *tmp_disk, char *tmp_fs);
extern int get_procs(uint32_t *procs);
extern int get_mach_name(char *node_name);
extern int get_memory(uint32_t *real_memory);
extern int get_tmp_disk(uint32_t *tmp_disk, char *tmp_fs);
#ifdef USE_OS_NAME
int get_os_name(char *os_name);
extern int get_os_name(char *os_name);
#endif
#ifdef USE_CPU_SPEED
int get_speed(float *speed);
extern int get_speed(float *speed);
#endif
#endif /* _GET_MACH_STAT_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment