ALT Linux Bugzilla
– Attachment 1284 Details for
Bug 8162
Замечания по menu-файлу
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Патч, устаняющий предупреждения в wmupmon 0.1.3
wmupmon-0.1.3-alt-warnings-fix.patch (text/plain), 1.46 KB, created by
Slava Semushin
on 2005-12-09 18:16:39 MSK
(
hide
)
Description:
Патч, устаняющий предупреждения в wmupmon 0.1.3
Filename:
MIME Type:
Creator:
Slava Semushin
Created:
2005-12-09 18:16:39 MSK
Size:
1.46 KB
patch
obsolete
>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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8162
:
1169
|
1283
| 1284