vnc: fix option misspelling ("non-adapative" -> "non-adaptive")
PATCH 1/1 vnc: fix option misspelling ("non-adapative" -> "non-adaptive")
---
A cursory web search shows that this flag doesn't show up much other than in QEMU mailing lists and source. I don't think this will break anything.
ui/vnc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
ui/vnc.c +1 -1
@@ -2945,7 +2945,7 @@ void vnc_display_open(DisplayState *ds, const char *display, Error **errp)#endif }else if (strncmp (options,"lossy" ,5 ) ==0 ) { vs->lossy = true; - }else if (strncmp (options,"non-adapative" ,13 ) ==0 ) { + }else if (strncmp (options,"non-adaptive" ,13 ) ==0 ) { vs->non_adaptive = true; }else if (strncmp (options,"share=" ,6 ) ==0 ) {if (strncmp (options+6 ,"ignore" ,6 ) ==0 ) {
Signature · 1 line
1.7.7.3
Quoted 5 lines · Catalin Patulea
Signed-off-by Catalin Patulea <[email protected]>---
A cursory web search shows that this flag doesn't show up much other than in QEMU mailing lists and source. I don't think this will break anything.
Yeah. In particular we documented it with the correct spelling and nobody came along and reported the option as missing. I think we can get away with this change. However...
ui/vnc.c void vnc_display_open(DisplayState *ds, const char *display, Error **errp) · line 2948
Quoted 13 lines
ui/vnc.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)ui/vnc.c +1
-1@@ -2945,7 +2945,7 @@ void vnc_display_open(DisplayState *ds, const char *display, Error **errp)#endif }else if (strncmp (options,"lossy" ,5 ) ==0 ) { vs->lossy = true; - }else if (strncmp (options,"non-adapative" ,13 ) ==0 ) { + }else if (strncmp (options,"non-adaptive" ,13 ) ==0 ) {
...this is a strncmp, you need to update the length parameter because you've changed the string.
Quoted 5 lines
ui/vnc.c +0
-1vs->non_adaptive = true; }else if (strncmp (options,"share=" ,6 ) ==0 ) {if (strncmp (options+6 ,"ignore" ,6 ) ==0 ) { --1.7.7.3
-- PMM
PATCH 1/1 vnc: fix option misspelling ("non-adapative" -> "non-adaptive")
---
D'oh, that was really stupid. Here it is with the correct length.
ui/vnc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
ui/vnc.c +1 -1
@@ -2945,7 +2945,7 @@ void vnc_display_open(DisplayState *ds, const char *display, Error **errp)#endif }else if (strncmp (options,"lossy" ,5 ) ==0 ) { vs->lossy = true; - }else if (strncmp (options,"non-adapative" ,13 ) ==0 ) { + }else if (strncmp (options,"non-adaptive" ,12 ) ==0 ) { vs->non_adaptive = true; }else if (strncmp (options,"share=" ,6 ) ==0 ) {if (strncmp (options+6 ,"ignore" ,6 ) ==0 ) {
Signature · 1 line
1.7.7.3
Quoted 22 lines · Catalin Patulea
Signed-off-by Catalin Patulea <[email protected]>---
D'oh, that was really stupid. Here it is with the correct length.ui/vnc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)ui/vnc.c +1
-2@@ -2945,7 +2945,7 @@ void vnc_display_open(DisplayState *ds, const char *display, Error **errp)#endif }else if (strncmp (options,"lossy" ,5 ) ==0 ) { vs->lossy = true; - }else if (strncmp (options,"non-adapative" ,13 ) ==0 ) { + }else if (strncmp (options,"non-adaptive" ,12 ) ==0 ) { vs->non_adaptive = true; }else if (strncmp (options,"share=" ,6 ) ==0 ) {if (strncmp (options+6 ,"ignore" ,6 ) ==0 ) { --
Quoted 2 lines
1.7.7.3
If we're gonna do this I guess it should go into 1.3... cc'ing Anthony.
-- PMM
Quoted 2 lines · Peter Maydell
If we're gonna do this I guess it should go into 1.3... cc'ing Anthony.
Friendly ping for trivial patch :)
Quoted 4 lines · Catalin Patulea
Quoted 2 lines · Peter Maydell
If we're gonna do this I guess it should go into 1.3... cc'ing Anthony.
Friendly ping for trivial patch :)
Hi Catalin,
In the future feel free to email [email protected] and I'll make sure trival patches get merged.
For the 1.3-rc cycle this patch can go directly through Anthony.
Stefan
Quoted 11 lines · Stefan Hajnoczi
Quoted 4 lines · Catalin Patulea
Quoted 2 lines · Peter Maydell
If we're gonna do this I guess it should go into 1.3... cc'ing Anthony.
Friendly ping for trivial patch :)
Hi Catalin,
In the future feel free to email [email protected] and I'll make sure trival patches get merged.For the 1.3-rc cycle this patch can go directly through Anthony.
Yes, I cc'd Anthony rather than -trivial when I reviewed this patch because I felt we were far enough into the freeze/release process that it shouldn't go via trivial.
-- PMM
Anthony Liguori
AppliedQuoted 5 lines · Catalin Patulea
Signed-off-by Catalin Patulea <[email protected]>---
A cursory web search shows that this flag doesn't show up much other than in QEMU mailing lists and source. I don't think this will break anything.
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 18 lines
ui/vnc.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)ui/vnc.c +1
-1@@ -2945,7 +2945,7 @@ void vnc_display_open(DisplayState *ds, const char *display, Error **errp)#endif }else if (strncmp (options,"lossy" ,5 ) ==0 ) { vs->lossy = true; - }else if (strncmp (options,"non-adapative" ,13 ) ==0 ) { + }else if (strncmp (options,"non-adaptive" ,13 ) ==0 ) { vs->non_adaptive = true; }else if (strncmp (options,"share=" ,6 ) ==0 ) {if (strncmp (options+6 ,"ignore" ,6 ) ==0 ) {Signature · 1 line
1.7.7.3