~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to testsuite/libsmbclient/src/init/init_2.c

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <stdlib.h>
 
3
#include <string.h>
 
4
#include <errno.h>
 
5
#include <libsmbclient.h>
 
6
 
 
7
 
 
8
int main(int argc, char **argv )
 
9
{
 
10
        int err = -1;
 
11
 
 
12
        if ( argc > 1 )
 
13
        {
 
14
                err = smbc_init(NULL, atoi(argv[1]));
 
15
 
 
16
                if ( err < 0 )
 
17
                        err = 1;
 
18
 
 
19
        }
 
20
 
 
21
        return err;
 
22
 
 
23
}