[SCM] Samba Shared Repository - branch master updated
Volker Lendecke
vlendec at samba.org
Tue Feb 23 09:21:02 MST 2010
The branch, master has been updated
via c31cf0a... s3: Consolidate some pid_to_procid() calls to procid_self()
from 0278ef8... s3: re-run make samba3-idl.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit c31cf0a1b5b113c1221477238efa6b131e884bcf
Author: Volker Lendecke <vl at samba.org>
Date: Tue Feb 23 17:17:58 2010 +0100
s3: Consolidate some pid_to_procid() calls to procid_self()
-----------------------------------------------------------------------
Summary of changes:
source3/torture/msgtest.c | 4 ++--
source3/utils/smbcontrol.c | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/torture/msgtest.c b/source3/torture/msgtest.c
index db9e589..0c4c96b 100644
--- a/source3/torture/msgtest.c
+++ b/source3/torture/msgtest.c
@@ -87,9 +87,9 @@ static void pong_message(struct messaging_context *msg_ctx,
safe_strcpy(buf, "1234567890", sizeof(buf)-1);
for (i=0;i<n;i++) {
- messaging_send(msg_ctx, pid_to_procid(getpid()), MSG_PING,
+ messaging_send(msg_ctx, procid_self(), MSG_PING,
&data_blob_null);
- messaging_send_buf(msg_ctx, pid_to_procid(getpid()), MSG_PING,
+ messaging_send_buf(msg_ctx, procid_self(), MSG_PING,
(uint8 *)buf, 11);
}
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index fc6e057..0ecab1b 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -954,7 +954,7 @@ static bool do_winbind_onlinestatus(struct messaging_context *msg_ctx,
{
struct server_id myid;
- myid = pid_to_procid(sys_getpid());
+ myid = procid_self();
if (argc != 1) {
fprintf(stderr, "Usage: smbcontrol winbindd onlinestatus\n");
@@ -986,7 +986,7 @@ static bool do_dump_event_list(struct messaging_context *msg_ctx,
{
struct server_id myid;
- myid = pid_to_procid(sys_getpid());
+ myid = procid_self();
if (argc != 1) {
fprintf(stderr, "Usage: smbcontrol <dest> dump-event-list\n");
@@ -1006,7 +1006,7 @@ static bool do_winbind_dump_domain_list(struct messaging_context *msg_ctx,
uint8_t *buf = NULL;
int buf_len = 0;
- myid = pid_to_procid(sys_getpid());
+ myid = procid_self();
if (argc < 1 || argc > 2) {
fprintf(stderr, "Usage: smbcontrol <dest> dump_domain_list "
@@ -1069,7 +1069,7 @@ static bool do_winbind_validate_cache(struct messaging_context *msg_ctx,
const struct server_id pid,
const int argc, const char **argv)
{
- struct server_id myid = pid_to_procid(sys_getpid());
+ struct server_id myid = procid_self();
if (argc != 1) {
fprintf(stderr, "Usage: smbcontrol winbindd validate-cache\n");
@@ -1239,7 +1239,7 @@ static struct server_id parse_dest(const char *dest)
/* Try self - useful for testing */
if (strequal(dest, "self")) {
- return pid_to_procid(sys_getpid());
+ return procid_self();
}
/* Fix winbind typo. */
--
Samba Shared Repository
More information about the samba-cvs
mailing list