mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
lib: Remove unused procid_is_me()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
da88b0da66
commit
62f2b86f4f
@ -439,7 +439,6 @@ uint32_t get_my_vnn(void);
|
||||
void set_my_unique_id(uint64_t unique_id);
|
||||
struct server_id pid_to_procid(pid_t pid);
|
||||
#define serverid_equal(p1, p2) server_id_equal(p1,p2)
|
||||
bool procid_is_me(const struct server_id *pid);
|
||||
struct server_id interpret_pid(const char *pid_string);
|
||||
bool procid_valid(const struct server_id *pid);
|
||||
bool procid_is_local(const struct server_id *pid);
|
||||
|
@ -1982,17 +1982,6 @@ struct server_id pid_to_procid(pid_t pid)
|
||||
.pid = pid, .unique_id = unique, .vnn = my_vnn };
|
||||
}
|
||||
|
||||
bool procid_is_me(const struct server_id *pid)
|
||||
{
|
||||
if (pid->pid != getpid())
|
||||
return False;
|
||||
if (pid->task_id != 0)
|
||||
return False;
|
||||
if (pid->vnn != my_vnn)
|
||||
return False;
|
||||
return True;
|
||||
}
|
||||
|
||||
struct server_id interpret_pid(const char *pid_string)
|
||||
{
|
||||
return server_id_from_string(get_my_vnn(), pid_string);
|
||||
|
Loading…
x
Reference in New Issue
Block a user