[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3240-g5fad9de

simo idra at samba.org
Tue Jul 15 21:00:40 GMT 2008


On Tue, 2008-07-15 at 13:31 -0700, Herb Lewis wrote:
> Günther Deschner wrote:
> > The branch, v3-3-test has been updated
> >        via  5fad9de2507b88820149def31faa28e5e45f7b5f (commit)
> >       from  1002507b56a13420d8178c5397610edd839a7584 (commit)
> > 
> > http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
> > 
> > 
> > - Log -----------------------------------------------------------------
> > commit 5fad9de2507b88820149def31faa28e5e45f7b5f
> > Author: Kai Blin <kai at samba.org>
> > Date:   Wed Jul 9 10:39:24 2008 +0200
> > 
> >     netapi: Correctly increase idx when displaying user information
> > 
> > -----------------------------------------------------------------------
> > 
> > Summary of changes:
> >  source/lib/netapi/examples/user/user_dispinfo.c |    4 +++-
> >  1 files changed, 3 insertions(+), 1 deletions(-)
> > 
> > 
> > Changeset truncated at 500 lines:
> > 
> > diff --git a/source/lib/netapi/examples/user/user_dispinfo.c b/source/lib/netapi/examples/user/user_dispinfo.c
> > index 9f86250..c7d3112 100644
> > --- a/source/lib/netapi/examples/user/user_dispinfo.c
> > +++ b/source/lib/netapi/examples/user/user_dispinfo.c
> > @@ -78,11 +78,13 @@ int main(int argc, const char **argv)
> >  		if (status == 0 || status == ERROR_MORE_DATA) {
> >  			user = (struct NET_DISPLAY_USER *)buffer;
> >  			for (i=0; i<entries_read; i++) {
> > -				printf("user %d: %s\n", i, user->usri1_name);
> > +				printf("user %d: %s\n", i + idx,i
> > +				       user->usri1_name);
> 
> Aren't you missing a format parameter or you have an extra arg.

Looks like a 'vi' typo :-)

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Senior Software Engineer at Red Hat Inc. <ssorce at redhat.com>



More information about the samba-technical mailing list