NOW IN MIT/X LICENSE
authorphillbush <phillbush@cock.li>
Sun, 13 Sep 2020 19:45:22 +0000 (16:45 -0300)
committerphillbush <phillbush@cock.li>
Sun, 13 Sep 2020 19:45:22 +0000 (16:45 -0300)
LICENSE [new file with mode: 0644]
README.md
xmenu.c

diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..560bf4f
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT/X Consortium License
+
+© 2020 phillbush
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
index d81aa39..838607b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -75,28 +75,3 @@ simple menu with submenus and separators.  The file `./demo.gif` shows how
 the menu generated by that script looks like.
 
 Read the [manual](https://github.com/phillbush/xmenu/wiki) for more information on running XMenu.
 the menu generated by that script looks like.
 
 Read the [manual](https://github.com/phillbush/xmenu/wiki) for more information on running XMenu.
-
-
-## License
-
-MIT/X Consortium License
-
-© 2020 phillbush
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the "Software"),
-to deal in the Software without restriction, including without limitation
-the rights to use, copy, modify, merge, publish, distribute, sublicense,
-and/or sell copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
-THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
diff --git a/xmenu.c b/xmenu.c
index 141551f..931d3fe 100644 (file)
--- a/xmenu.c
+++ b/xmenu.c
@@ -333,9 +333,9 @@ initmonitor(void)
 static void
 initresources(void)
 {
 static void
 initresources(void)
 {
-       char *xrm;
        long n;
        char *type;
        long n;
        char *type;
+       char *xrm;
        XrmDatabase xdb;
        XrmValue xval;
 
        XrmDatabase xdb;
        XrmValue xval;