Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
b6246fd3
Commit
b6246fd3
authored
Oct 29, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
36cdebc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
wcfs/internal/wcfs_misc.cpp
wcfs/internal/wcfs_misc.cpp
+2
-1
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+4
-3
No files found.
wcfs/internal/wcfs_misc.cpp
View file @
b6246fd3
...
...
@@ -205,7 +205,8 @@ bool has_prefix(const string &s, const string &prefix) {
vector
<
string
>
split
(
const
string
&
s
,
char
sep
)
{
vector
<
string
>
r
;
int
psep_prev
=-
1
,
psep
;
int
psep_prev
=-
1
;
size_t
psep
;
while
(
1
)
{
psep
=
s
.
find
(
sep
,
psep_prev
+
1
);
if
(
psep
==
string
::
npos
)
...
...
wcfs/internal/wcfs_virtmem.cpp
View file @
b6246fd3
...
...
@@ -690,14 +690,15 @@ error WatchLink::recvReq(IContext *ctx, PinReq *prx) {
static
error
_parsePinReq
(
PinReq
*
pin
,
const
rxPkt
*
pkt
)
{
// XXX err ctx "bad pin"
pin
->
stream
=
pkt
->
stream
;
auto
msg
=
pkt
->
to_string
();
// pin <foid>) #<blk> @<at>
if
(
!
strings
::
has_prefix
(
msg
,
"pin "
))
return
fmt
::
errorf
(
"not a pin request"
);
// XXX +msg?
argv
=
strings
::
split
(
msg
.
substr
(
4
),
' '
);
if
(
msgv
.
len
()
!=
3
)
return
fmt
::
errorf
(
"expected 3 arguments, got %
d"
,
msgv
.
len
());
a
uto
a
rgv
=
strings
::
split
(
msg
.
substr
(
4
),
' '
);
if
(
argv
.
size
()
!=
3
)
return
fmt
::
errorf
(
"expected 3 arguments, got %
zd"
,
argv
.
size
());
// XXX
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment