summaryrefslogtreecommitdiff
path: root/inputmethod/scim/patches/patch-extras_immodules_agent_scim-bridge-agent-application.cpp
blob: d52a16aa7eeb35f8c1e1aaa31a16d78da421d57f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-extras_immodules_agent_scim-bridge-agent-application.cpp,v 1.2 2014/11/09 02:46:30 obache Exp $

--- extras/immodules/agent/scim-bridge-agent-application.cpp.orig	2012-06-13 15:22:28.000000000 +0000
+++ extras/immodules/agent/scim-bridge-agent-application.cpp
@@ -61,12 +61,12 @@ int main (int argc, char *argv[])
         {0, 0, NULL, 0}
     };
 
-    char short_options[] = "vhqdls:b:";
+    char short_options[] = "vhql:sn:";
 
     unsigned int tmp_uint;
 
     int option = 0;
-    while (option != EOF) {
+    while (option != -1) {
         option = getopt_long (argc, argv, short_options, long_options, NULL);
         switch (option) {
             case 'v':