Skip to content

Commit

Permalink
Update URLs in -v output and -h output
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <[email protected]>
  • Loading branch information
masatake committed May 5, 2019
1 parent 7d83bfe commit f87cba6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
7 changes: 6 additions & 1 deletion lsof.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,12 @@ static struct utmp dummy_utmp; /* to get login name length */
# endif /* !defined(LOGINML) */

#define LPROCINCR 128 /* Lproc[] allocation increment */
#define LSOF_URL "ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/"
#define LSOF_GITHUB_URL "https://github.com/lsof-org"
#define LSOF_REPO "lsof-legacy"
#define LSOF_BRANCH "cleanup"
#define LSOF_REPO_URL LSOF_GITHUB_URL "/" LSOF_REPO
#define LSOF_FAQ_URL LSOF_REPO_URL "/blob/" LSOF_BRANCH "/00FAQ"
#define LSOF_MAN_URL LSOF_REPO_URL "/blob/" LSOF_BRANCH "/Lsof.8"
#define MIN_AF_ADDR sizeof(struct in_addr)
/* minimum AF_* address length */

Expand Down
16 changes: 8 additions & 8 deletions usage.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ usage(xv, fh, version)

if (Fhelp || xv) {
(void) fprintf(stderr, "%s %s\n latest revision: %s\n",
Pn, LSOF_VERSION, LSOF_URL);
(void) fprintf(stderr, " latest FAQ: %sFAQ\n", LSOF_URL);
(void) fprintf(stderr, " latest man page: %slsof_man\n", LSOF_URL);
Pn, LSOF_VERSION, LSOF_REPO_URL);
(void) fprintf(stderr, " latest FAQ: %s\n", LSOF_FAQ_URL);
(void) fprintf(stderr, " latest (non-formatted) man page: %s\n", LSOF_MAN_URL);
(void) fprintf(stderr,
" usage: [-?ab%sh%slnNoOP%s%stUvV%s]",

Expand Down Expand Up @@ -919,11 +919,11 @@ usage(xv, fh, version)
*/
(void) fprintf(stderr, "%s version information:\n", Pn);
(void) fprintf(stderr, " revision: %s\n", LSOF_VERSION);
(void) fprintf(stderr, " latest revision: %s\n", LSOF_URL);
(void) fprintf(stderr, " latest FAQ: %sFAQ\n",
LSOF_URL);
(void) fprintf(stderr, " latest man page: %slsof_man\n",
LSOF_URL);
(void) fprintf(stderr, " latest revision: %s\n", LSOF_REPO_URL);
(void) fprintf(stderr, " latest FAQ: %s\n",
LSOF_FAQ_URL);
(void) fprintf(stderr, " latest (non-formatted) man page: %s\n",
LSOF_MAN_URL);

#if defined(LSOF_CINFO)
if ((cp = isnullstr(LSOF_CINFO)))
Expand Down

0 comments on commit f87cba6

Please sign in to comment.