Skip to contentSkip to conversation

vnc: fix option misspelling ("non-adapative" -> "non-adaptive")

PATCH Applied Catalin Patulea 4 participants 8 messages Nov 9, 2012 – Nov 26, 2012

lore
Share & tools
lore
#0 lore raw

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
index 61f120e..073fbe7 100644
@@ -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
#1 lore raw
Quoted 5 lines · Catalin Patulea

---
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
index 61f120e..073fbe7 100644
@@ -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 -1
             vs->non_adaptive = true;
         } else if (strncmp(options, "share=", 6) == 0) {
             if (strncmp(options+6, "ignore", 6) == 0) {
--

1.7.7.3

-- PMM

#2 lore raw

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
index 61f120e..ba30362 100644
@@ -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
Reviewed-by on v1 1/1
#3 lore raw
Quoted 22 lines · Catalin Patulea

---
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
index 61f120e..ba30362 100644
@@ -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

#4 lore raw
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 :)

#5 lore raw
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

#6 lore raw
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

#7 lore raw
In reply to Catalin Patulea
Quoted 5 lines · Catalin Patulea

---
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
index 61f120e..073fbe7 100644
@@ -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