Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
2e1cf3dc
Commit
2e1cf3dc
authored
20 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
smb_islocked() now returns BOOL (not int).
parent
a617fe1f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/smblib/smblib.c
+6
-6
6 additions, 6 deletions
src/smblib/smblib.c
src/smblib/smblib.h
+1
-1
1 addition, 1 deletion
src/smblib/smblib.h
with
7 additions
and
7 deletions
src/smblib/smblib.c
+
6
−
6
View file @
2e1cf3dc
...
...
@@ -323,7 +323,7 @@ int SMBCALL smb_lock(smb_t* smb)
return
(
SMB_ERR_LOCK
);
}
close
(
file
);
return
(
0
);
return
(
SMB_SUCCESS
);
}
int
SMBCALL
smb_unlock
(
smb_t
*
smb
)
...
...
@@ -337,17 +337,17 @@ int SMBCALL smb_unlock(smb_t* smb)
,
errno
,
STRERROR
(
errno
),
str
);
return
(
SMB_ERR_DELETE
);
}
return
(
0
);
return
(
SMB_SUCCESS
);
}
int
SMBCALL
smb_islocked
(
smb_t
*
smb
)
BOOL
SMBCALL
smb_islocked
(
smb_t
*
smb
)
{
char
str
[
MAX_PATH
+
1
];
if
(
access
(
smb_lockfname
(
smb
,
str
,
sizeof
(
str
)
-
1
),
0
)
!=
0
)
return
(
0
);
return
(
FALSE
);
safe_snprintf
(
smb
->
last_error
,
sizeof
(
smb
->
last_error
),
"%s exists"
,
str
);
return
(
1
);
return
(
TRUE
);
}
/****************************************************************************/
...
...
@@ -2008,7 +2008,7 @@ int SMBCALL smb_freemsg_dfields(smb_t* smb, smbmsg_t* msg, ushort refs)
,
msg
->
dfield
[
x
].
length
,
refs
))
!=
SMB_SUCCESS
)
return
(
i
);
}
return
(
0
);
return
(
SMB_SUCCESS
);
}
/****************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
src/smblib/smblib.h
+
1
−
1
View file @
2e1cf3dc
...
...
@@ -112,7 +112,7 @@ SMBEXPORT int SMBCALL smb_stack(smb_t* smb, int op);
SMBEXPORT
int
SMBCALL
smb_trunchdr
(
smb_t
*
smb
);
SMBEXPORT
int
SMBCALL
smb_lock
(
smb_t
*
smb
);
SMBEXPORT
int
SMBCALL
smb_unlock
(
smb_t
*
smb
);
SMBEXPORT
int
SMBCALL
smb_islocked
(
smb_t
*
smb
);
SMBEXPORT
BOOL
SMBCALL
smb_islocked
(
smb_t
*
smb
);
SMBEXPORT
int
SMBCALL
smb_locksmbhdr
(
smb_t
*
smb
);
SMBEXPORT
int
SMBCALL
smb_getstatus
(
smb_t
*
smb
);
SMBEXPORT
int
SMBCALL
smb_putstatus
(
smb_t
*
smb
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment