aboutsummaryrefslogtreecommitdiffstats
path: root/man2/timerfd_create.2
diff options
context:
space:
mode:
authorAlex Colomar <alx.manpages@gmail.com>2022-09-16 00:08:46 +0200
committerAlex Colomar <alx.manpages@gmail.com>2022-09-17 13:44:12 +0200
commit0b94bd78e52e26a5bc26d1ba2384fc875e08ccd8 (patch)
treed9444b3c5b12e01d2d166c89278da7c2680bab22 /man2/timerfd_create.2
parentda3b806a84457c49f01338ada5738a07d3b51571 (diff)
downloadman-pages-0b94bd78e52e26a5bc26d1ba2384fc875e08ccd8.tar.gz
Various pages: EXAMPLES: Align variable declarations
Also, move some declarations to the top of functions. Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man2/timerfd_create.2')
-rw-r--r--man2/timerfd_create.218
1 files changed, 9 insertions, 9 deletions
diff --git a/man2/timerfd_create.2 b/man2/timerfd_create.2
index c53c97e248..fe538e0af7 100644
--- a/man2/timerfd_create.2
+++ b/man2/timerfd_create.2
@@ -606,10 +606,10 @@ a.out 3 1 100
static void
print_elapsed_time(void)
{
- static struct timespec start;
- struct timespec curr;
- static int first_call = 1;
- int secs, nsecs;
+ int secs, nsecs;
+ static int first_call = 1;
+ struct timespec curr;
+ static struct timespec start;
if (first_call) {
first_call = 0;
@@ -632,11 +632,11 @@ print_elapsed_time(void)
int
main(int argc, char *argv[])
{
- struct itimerspec new_value;
- int fd;
- struct timespec now;
- uint64_t exp, tot_exp, max_exp;
- ssize_t s;
+ int fd;
+ ssize_t s;
+ uint64_t exp, tot_exp, max_exp;
+ struct timespec now;
+ struct itimerspec new_value;
if (argc != 2 && argc != 4) {
fprintf(stderr, "%s init\-secs [interval\-secs max\-exp]\en",