From: Craig Small Date: Fri, 19 Oct 2001 00:47:22 +0000 (+0000) Subject: signames.h is now cleaned X-Git-Tag: psmisc-21~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83fed808fbe0ab8b30da9d73485dd161aa87c824;p=psmisc signames.h is now cleaned --- diff --git a/ChangeLog b/ChangeLog index d1fd292..495ad94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Changes in 20.3 +============== + - signames.h is cleaned + - More translatable strings + + Changes in 20.2 (18-OCT-2001) ============================= - Added NLS/gettext diff --git a/src/Makefile.am b/src/Makefile.am index 0f41781..fb173c9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,6 +15,8 @@ BUILT_SOURCES = signames.h EXTRA_DIST = signames.c +CLEANFILES = signames.h + signames.h: signames.c @CPP@ -dM $< |\ tr -s '\t ' ' ' | sort -n +2 | sed \ diff --git a/src/Makefile.in b/src/Makefile.in index 75c02f5..7df4451 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -99,6 +99,8 @@ pstree_LDADD = @TERMCAP_LIB@ BUILT_SOURCES = signames.h EXTRA_DIST = signames.c + +CLEANFILES = signames.h mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = @@ -310,6 +312,7 @@ installdirs: mostlyclean-generic: clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) diff --git a/src/fuser.c b/src/fuser.c index e4541cb..97c6762 100644 --- a/src/fuser.c +++ b/src/fuser.c @@ -61,9 +61,9 @@ typedef struct _net_cache { + struct sockaddr_storage rmt_addr; int lcl_port; int rmt_port; - unsigned long rmt_addr; ino_t ino; struct _net_cache *next; } @@ -210,7 +210,7 @@ fill_net_cache (SPACE_DSC * dsc) if (ipv4only) fprintf(stderr, _("-4 flag used but proc file %s is not readable\n"), buffer); } else { - parse_net_file (dsc, buffer, &last ); + parse_net_file (dsc, buffer, &last,4 ); } } if (!ipv4only) { @@ -219,7 +219,7 @@ fill_net_cache (SPACE_DSC * dsc) if (ipv6only) fprintf(stderr, _("-6 flag used but proc file %s is not readable\n"), buffer); } else { - parse_net_file (dsc, buffer, &last ); + parse_net_file (dsc, buffer, &last,6 ); } } }