repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
samba-3.5.8 for ARM
[tomato.git]
/
release
/
src-rt-6.x.4708
/
router
/
samba-3.5.8
/
testsuite
/
libsmbclient
/
src
/
init
/
init_2.c
blob
120160297b6479c0a29c485dedd9e0767fa96565
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
}