From ba1699463bee4d622e76f54c1a1c17858545c84f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 6 Jun 2012 15:22:31 +0200 Subject: s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tid Pair-Programmed-With: Stefan Metzmacher --- source3/utils/net_status.c | 4 ++-- source3/utils/status.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_status.c b/source3/utils/net_status.c index 2bb639138e..85d023505e 100644 --- a/source3/utils/net_status.c +++ b/source3/utils/net_status.c @@ -96,7 +96,7 @@ static int show_share(struct db_record *rec, const struct connections_data *crec, void *state) { - if (crec->cnum == -1) + if (crec->cnum == TID_FIELD_INVALID) return 0; if (!process_exists(crec->pid)) { @@ -143,7 +143,7 @@ static int show_share_parseable(const struct connections_key *key, int i; bool guest = true; - if (crec->cnum == -1) + if (crec->cnum == TID_FIELD_INVALID) return 0; if (!process_exists(crec->pid)) { diff --git a/source3/utils/status.c b/source3/utils/status.c index 1bcb1403fc..a6e8055062 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -250,7 +250,7 @@ static int traverse_fn1(const struct connections_key *key, const struct connections_data *crec, void *state) { - if (crec->cnum == -1) + if (crec->cnum == TID_FIELD_INVALID) return 0; if (!process_exists(crec->pid) || !Ucrit_checkUid(crec->uid)) { -- cgit