View | Details | Raw Unified | Return to bug 8162
Collapse All | Expand All

(-)wmupmon-0.1.3.orig/src/main.c (-4 / +4 lines)
Lines 62-67 Link Here
62
static void draw_seconddigit(int per);
62
static void draw_seconddigit(int per);
63
static void parse_arguments(int argc, char **argv);
63
static void parse_arguments(int argc, char **argv);
64
static void print_help(char *prog);
64
static void print_help(char *prog);
65
int get_uptime(void);
65
66
66
int main(int argc, char **argv)
67
int main(int argc, char **argv)
67
{
68
{
Lines 171-177 Link Here
171
/* called by timer */
172
/* called by timer */
172
static void update(void)
173
static void update(void)
173
{
174
{
174
   static light pre_backlight;
175
   int total_secs = 0, seconds, minutes, hours, days;
175
   int total_secs = 0, seconds, minutes, hours, days;
176
176
177
   /* get current uptime in seconds */
177
   /* get current uptime in seconds */
Lines 271-277 Link Here
271
271
272
static void draw_hourdigit(int num)
272
static void draw_hourdigit(int num)
273
{
273
{
274
   int v100, v10, v1;
274
   int v10, v1;
275
   int y=40, x1=0, x2=0;
275
   int y=40, x1=0, x2=0;
276
276
277
   if (num < 0) num = 0;
277
   if (num < 0) num = 0;
Lines 295-301 Link Here
295
295
296
static void draw_minutedigit(int num)
296
static void draw_minutedigit(int num)
297
{
297
{
298
   int v100, v10, v1;
298
   int v10, v1;
299
   int y=40, x1=0, x2=0;
299
   int y=40, x1=0, x2=0;
300
300
301
   if (num < 0) num = 0;
301
   if (num < 0) num = 0;
Lines 319-325 Link Here
319
319
320
static void draw_seconddigit(int num)
320
static void draw_seconddigit(int num)
321
{
321
{
322
   int v100, v10, v1;
322
   int v10, v1;
323
   int y=40, x1=0, x2=0;
323
   int y=40, x1=0, x2=0;
324
324
325
   if (num < 0) num = 0;
325
   if (num < 0) num = 0;
(-)wmupmon-0.1.3.orig/src/uptime_linux.c (-1 / +3 lines)
Lines 11-19 Link Here
11
11
12
#include <stdio.h>
12
#include <stdio.h>
13
#include <fcntl.h>
13
#include <fcntl.h>
14
#include <unistd.h>
15
#include <stdlib.h>
14
16
15
/* return uptime in seconds */
17
/* return uptime in seconds */
16
int get_uptime()
18
int get_uptime(void)
17
{
19
{
18
   char buffer[BUFSIZ];
20
   char buffer[BUFSIZ];
19
   int fd, len, i=0;
21
   int fd, len, i=0;

Return to bug 8162