aboutsummaryrefslogtreecommitdiff
path: root/toys/other/hostid.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/hostid.c')
-rw-r--r--toys/other/hostid.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/toys/other/hostid.c b/toys/other/hostid.c
deleted file mode 100644
index 883ac3ca..00000000
--- a/toys/other/hostid.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/* hostid.c - Print the numeric identifier for the current host.
- *
- * Copyright 2015 Ranjan Kumar <ranjankumar.bth@gmail.com>
- *
- * No Standard.
-
-USE_HOSTID(NEWTOY(hostid, ">0", TOYFLAG_USR|TOYFLAG_BIN))
-
-config HOSTID
- bool "hostid"
- default y
- help
- usage: hostid
-
- Print the numeric identifier for the current host.
-*/
-#define FOR_hostid
-#include "toys.h"
-
-void hostid_main(void)
-{
- xprintf("%08lx\n", gethostid());
-}