Browse Source

teach those sloppy novice hackers how to return status from main() especially

for helper stuff used in Makefiles ... :-(


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2577 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
3bbbd188f6
3 changed files with 37 additions and 2 deletions
  1. +35
    -0
      package/kasc/openglad/fix-return-value.patch
  2. +1
    -1
      package/kasc/openglad/openglad.conf
  3. +1
    -1
      package/kasc/openglad/openglad.desc

+ 35
- 0
package/kasc/openglad/fix-return-value.patch

@ -0,0 +1,35 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/kasc/openglad/fix-return-value.patch
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
Well - people should know how to return the status in main - especially
when they use it in the Makefile themselfes ...
- Rene Rebe <rene@rocklinux.org>
--- openglad-0.98/util/gladpack.c.orig 2004-03-14 19:07:59.000000000 +0100
+++ openglad-0.98/util/gladpack.c 2004-03-14 19:07:17.000000000 +0100
@@ -16,6 +16,7 @@
printf("Usage: gladpack (p|u) ...\n");
return 1;
}
+ return 0;
}
int pack(int argc, char **argv)

+ 1
- 1
package/kasc/openglad/openglad.conf

@ -7,7 +7,7 @@
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/kasc/openglad/openglad.conf
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

+ 1
- 1
package/kasc/openglad/openglad.desc

@ -7,7 +7,7 @@
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/kasc/openglad/openglad.desc
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

Loading…
Cancel
Save