ALT Linux repositórios
Group :: Desktop gráfico/Window Maker
RPM: wmupmon
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: wmupmon-0.1.3-alt-warnings-fix.patch
Download
Download
diff -ru wmupmon-0.1.3.orig/src/main.c wmupmon-0.1.3/src/main.c
--- wmupmon-0.1.3.orig/src/main.c 2004-12-12 01:07:21 +0600
+++ wmupmon-0.1.3/src/main.c 2005-12-09 20:22:48 +0600
@@ -62,6 +62,7 @@
static void draw_seconddigit(int per);
static void parse_arguments(int argc, char **argv);
static void print_help(char *prog);
+int get_uptime(void);
int main(int argc, char **argv)
{
@@ -171,7 +172,6 @@
/* called by timer */
static void update(void)
{
- static light pre_backlight;
int total_secs = 0, seconds, minutes, hours, days;
/* get current uptime in seconds */
@@ -271,7 +271,7 @@
static void draw_hourdigit(int num)
{
- int v100, v10, v1;
+ int v10, v1;
int y=40, x1=0, x2=0;
if (num < 0) num = 0;
@@ -295,7 +295,7 @@
static void draw_minutedigit(int num)
{
- int v100, v10, v1;
+ int v10, v1;
int y=40, x1=0, x2=0;
if (num < 0) num = 0;
@@ -319,7 +319,7 @@
static void draw_seconddigit(int num)
{
- int v100, v10, v1;
+ int v10, v1;
int y=40, x1=0, x2=0;
if (num < 0) num = 0;
diff -ru wmupmon-0.1.3.orig/src/uptime_linux.c wmupmon-0.1.3/src/uptime_linux.c
--- wmupmon-0.1.3.orig/src/uptime_linux.c 2004-12-12 01:07:21 +0600
+++ wmupmon-0.1.3/src/uptime_linux.c 2005-12-09 20:25:50 +0600
@@ -11,9 +11,11 @@
#include <stdio.h>
#include <fcntl.h>
+#include <unistd.h>
+#include <stdlib.h>
/* return uptime in seconds */
-int get_uptime()
+int get_uptime(void)
{
char buffer[BUFSIZ];
int fd, len, i=0;