finger

a simple finger client
Log | Files | Refs

commit 09d6e654ee6860cdf058b74443750e3be447280f
parent ea732482a4e92f463b89bbbd2215c12d67f3547f
Author: Naveen Narayanan <zerous@nocebo.space>
Date:   Sat, 25 Sep 2021 18:24:52 +0200

Use (inp, out, out) pattern

(inp, out, out) argument pattern for functions make more sense
aesthetically.

Diffstat:
Mfinger.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/finger.c b/finger.c @@ -21,7 +21,7 @@ usage(void) } int -cred(char *username, char *hostname, char *input) +cred(char *input, char *username, char *hostname) { char *a; @@ -60,7 +60,7 @@ main(int argc, char **argv) if (argc != 2) usage(); - if (!cred(user, hostname, argv[1])) + if (!cred(argv[1], user, hostname)) usage(); hints.ai_family = AF_UNSPEC;