aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2012-11-05 11:25:10 +0800
committerFengguang Wu <fengguang.wu@intel.com>2012-11-05 11:25:10 +0800
commitdf704b8482c1f94289c4bde89fc78e988d291f2c (patch)
treeb80abd647c0ef0cf0d07d7254b305e1730b4da5f
parent36122129d7abacbf504286f22274245d91052ac6 (diff)
downloadvm-scalability-df704b8482c1f94289c4bde89fc78e988d291f2c.tar.gz
usemem: use tab for indents
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rw-r--r--usemem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usemem.c b/usemem.c
index 4087d4d..3e57d2c 100644
--- a/usemem.c
+++ b/usemem.c
@@ -166,14 +166,14 @@ unsigned long long memparse(const char *ptr, char **retptr)
static inline void os_random_seed(unsigned long seed, struct drand48_data *rs)
{
- srand48_r(seed, rs);
+ srand48_r(seed, rs);
}
static inline long os_random_long(unsigned long max, struct drand48_data *rs)
{
- long val;
+ long val;
- lrand48_r(rs, &val);
+ lrand48_r(rs, &val);
return (unsigned long)((double)max * val / (RAND_MAX + 1.0));
}
@@ -187,7 +187,7 @@ int down(int sem_id)
.sem_op = -1,
.sem_flg = SEM_UNDO,
};
- return semop(sem_id, &buf, 1);
+ return semop(sem_id, &buf, 1);
}
int up(int sem_id)
@@ -197,7 +197,7 @@ int up(int sem_id)
.sem_op = 1,
.sem_flg = SEM_UNDO,
};
- return semop(sem_id, &buf, 1);
+ return semop(sem_id, &buf, 1);
}
void delete_pid_file(void)