Package: spinner / 1.2.4-3

fix-warnings Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--- a/spinner.c
+++ b/spinner.c
@@ -58,6 +58,17 @@ $Revision: 1.9 $
 #define MAX_TIME			65000
 
 
+static void DoInterrupt(void);
+static int Daemonize(int verbose, char* logFileName, int logFileSet, FILE* logfile, int doPidFile, char* pidFileName);
+static void WritePidFile(int verbose, pid_t pid, FILE* logfile, char* pidFileName );
+static void InterruptBlockedOpen(void);
+static inline int OpenTTY(int logFileSet, FILE* logfile, char* whichTTY, char* ttyName );
+static void ResetTerm( int verbose, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName );
+static int SpinnerLoop( int verbose, int inverse, int time, int microTime, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName, char* failMsg );
+static int NullLoop( int verbose, int time, int microTime, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName, char* failMsg );
+static int GetHomePath(int verbose, FILE* logfile, char* fullHomePath);
+
+
 
 /****************/
 /* Static vars  */
@@ -81,8 +92,6 @@ static volatile sig_atomic_t	gCanJump =
 /*  Handle interrupt Signals  */
 static void DoInterrupt(void)
 {
-	int	saveErrno;
-	
 	gInterrupted++;
 	/* for a quit if we get two signals in a row before we have quit normally */
 	if(gInterrupted > 1)
--- a/spinner.h
+++ b/spinner.h
@@ -85,14 +85,4 @@ $Revision: 1.3 $
 #define VT100_HOME_CODE							"\033[H"
 #define VT100_INVERSE_CODE						"\033[7m"
 
-static void DoInterrupt(void);
-static int Daemonize(int verbose, char* logFileName, int logFileSet, FILE* logfile, int doPidFile, char* pidFileName);
-static void WritePidFile(int verbose, pid_t pid, FILE* logfile, char* pidFileName );
-static void InterruptBlockedOpen(void);
-static inline int OpenTTY(int logFileSet, FILE* logfile, char* whichTTY, char* ttyName );
-static void ResetTerm( int verbose, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName );
-static int SpinnerLoop( int verbose, int inverse, int time, int microTime, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName, char* failMsg );
-static int NullLoop( int verbose, int time, int microTime, int logFileSet, FILE* logfile, char* whichTTY, char* ttyName, char* failMsg );
-static int GetHomePath(int verbose, FILE* logfile, char* fullHomePath);
-
 #endif /* SPINNER_H */