Add BSD license boilerplate and LICENSE.txt file
authorWincent Colaiuta <win@wincent.com>
Sun, 15 May 2011 23:57:43 +0000 (16:57 -0700)
committerWincent Colaiuta <win@wincent.com>
Sun, 15 May 2011 23:58:03 +0000 (16:58 -0700)
Signed-off-by: Wincent Colaiuta <win@wincent.com>
LICENSE.txt [new file with mode: 0644]
askpass.xcodeproj/project.pbxproj
main.c

diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644 (file)
index 0000000..50d3022
--- /dev/null
@@ -0,0 +1,22 @@
+Copyright 2011 Wincent Colaiuta. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice,
+   this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
index 3006bbab863106795442be2d42dedef95a177a05..2428c41956f0e3f399a23c5269286885b8bf70a4 100644 (file)
@@ -28,6 +28,7 @@
 /* Begin PBXFileReference section */
                08FB7796FE84155DC02AAC07 /* main.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
                09AB6884FE841BABC02AAC07 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = "<absolute>"; };
+               371C41C413809F6900FEDB43 /* LICENSE.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE.txt; sourceTree = "<group>"; };
                8DD76F7E0486A8DE00D96B5E /* askpass */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = askpass; sourceTree = BUILT_PRODUCTS_DIR; };
                C6859E970290921104C91782 /* askpass.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = askpass.1; sourceTree = "<group>"; };
 /* End PBXFileReference section */
@@ -82,6 +83,7 @@
                C6859E96029091FE04C91782 /* Documentation */ = {
                        isa = PBXGroup;
                        children = (
+                               371C41C413809F6900FEDB43 /* LICENSE.txt */,
                                C6859E970290921104C91782 /* askpass.1 */,
                        );
                        name = Documentation;
                        isa = PBXProject;
                        buildConfigurationList = 1DEB924B08733DCA0010E9CD /* Build configuration list for PBXProject "askpass" */;
                        compatibilityVersion = "Xcode 3.1";
+                       developmentRegion = English;
                        hasScannedForEncodings = 1;
+                       knownRegions = (
+                               en,
+                       );
                        mainGroup = 08FB7794FE84155DC02AAC07 /* askpass */;
                        projectDirPath = "";
                        projectRoot = "";
diff --git a/main.c b/main.c
index 9470ffbdeba5ad81a39cb41761daaa5ba075e3fc..815a7c24ac287749fce2724ba550155c70eeaa0b 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1,3 +1,27 @@
+// main.c
+// Copyright 2011 Wincent Colaiuta. All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are met:
+//
+// 1. Redistributions of source code must retain the above copyright notice,
+//    this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice,
+//    this list of conditions and the following disclaimer in the documentation
+//    and/or other materials provided with the distribution.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
+// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+// POSSIBILITY OF SUCH DAMAGE.
+
 #include <CoreFoundation/CoreFoundation.h>
 
 #define PASSWORD_MAX_LEN 1024