File: single-declaration.patch

package info (click to toggle)
heroes 0.21-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,796 kB
  • sloc: ansic: 27,951; sh: 3,941; makefile: 651; yacc: 318; sed: 51; lisp: 10; perl: 9
file content (16 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Ensure variables are only declared once
Author: Stephen Kitt <skitt@debian.org>

--- a/src/persona.h
+++ b/src/persona.h
@@ -28,8 +28,8 @@
  * difference only if the program has a sgid or suid bit.
  */
 
-bool keep_sgid;			/* Whether we should keep the  */
-bool keep_suid;			/* SGID or SUID priviledge. */
+extern bool keep_sgid;			/* Whether we should keep the  */
+extern bool keep_suid;			/* SGID or SUID priviledge. */
 
 /* Get information about the current persona,
    and switch to the user persona.  */