projects
/
platform
/
upstream
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d21101
)
nbd-server: fix dup_serve() to accept a const server pointer
author
Tuomas Jorma Juhani Räsänen
<tuomasjjrasanen@tjjr.fi>
Tue, 1 Jan 2013 19:21:21 +0000
(21:21 +0200)
committer
Wouter Verhelst
<w@uter.be>
Wed, 2 Jan 2013 07:49:17 +0000
(08:49 +0100)
dup_serve() does not modify the source server (as it should be), so the
pointer should be declared const.
Signed-off-by: Tuomas Jorma Juhani Räsänen <tuomasjjrasanen@tjjr.fi>
nbd-server.c
patch
|
blob
|
history
diff --git
a/nbd-server.c
b/nbd-server.c
index
03d0f73
..
de1b20e
100644
(file)
--- a/
nbd-server.c
+++ b/
nbd-server.c
@@
-664,7
+664,7
@@
void remove_server(gpointer s) {
* @param s the old server we want to duplicate
* @return new duplicated server
**/
-SERVER* dup_serve(
SERVER *
s) {
+SERVER* dup_serve(
const SERVER *const
s) {
SERVER *serve = NULL;
serve=g_new0(SERVER, 1);