summaryrefslogtreecommitdiff
path: root/src/who.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-12-02 18:51:53 +0000
committerJim Meyering <jim@meyering.net>1992-12-02 18:51:53 +0000
commit9d2ef3292f106ad2a374780c001fcf844ef62144 (patch)
tree94ad8796ff3d289f38c912e3750780f72f5d71a5 /src/who.c
parent60edc4537b04bb59858ba135063e0f09c0296feb (diff)
downloadcoreutils-9d2ef3292f106ad2a374780c001fcf844ef62144.tar.xz
Convert static declarations of struct option to use new macros from
getopt.h: no_argument, required_argument, and optional_argument.
Diffstat (limited to 'src/who.c')
-rw-r--r--src/who.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/who.c b/src/who.c
index aa90c022a..381a51f50 100644
--- a/src/who.c
+++ b/src/who.c
@@ -94,12 +94,12 @@ static int include_mesg;
static struct option const longopts[] =
{
- {"count", 0, NULL, 'q'},
- {"idle", 0, NULL, 'u'},
- {"heading", 0, NULL, 'H'},
- {"message", 0, NULL, 'T'},
- {"mesg", 0, NULL, 'T'},
- {"writable", 0, NULL, 'T'},
+ {"count", no_argument, NULL, 'q'},
+ {"idle", no_argument, NULL, 'u'},
+ {"heading", no_argument, NULL, 'H'},
+ {"message", no_argument, NULL, 'T'},
+ {"mesg", no_argument, NULL, 'T'},
+ {"writable", no_argument, NULL, 'T'},
{NULL, 0, NULL, 0}
};