Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:42.3:Rings:1-MinimalX
procinfo
procinfo-18.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File procinfo-18.dif of Package procinfo
--- Makefile +++ Makefile Mon Sep 17 14:56:55 2001 @@ -4,13 +4,13 @@ CC = gcc -Wall -Wstrict-prototypes -CFLAGS = -O2 +CFLAGS = $(RPM_OPT_FLAGS) -pipe LDFLAGS = -s # If you get lots of `undefined references', you probably need -lncurses # instead: -LDLIBS = -ltermcap +LDLIBS = -lncurses ### Add to taste: @@ -36,10 +36,10 @@ install procinfo $(prefix)/bin/procinfo install lsdev.pl $(prefix)/bin/lsdev install socklist.pl $(prefix)/bin/socklist - -mkdir -p $(prefix)/man/man8 - install -m 644 procinfo.8 $(prefix)/man/man8/procinfo.8 - install -m 644 lsdev.8 $(prefix)/man/man8/lsdev.8 - install -m 644 socklist.8 $(prefix)/man/man8/socklist.8 + -mkdir -p $(prefix)/share/man/man8 + install -m 644 procinfo.8 $(prefix)/share/man/man8/procinfo.8 + install -m 644 lsdev.8 $(prefix)/share/man/man8/lsdev.8 + install -m 644 socklist.8 $(prefix)/share/man/man8/socklist.8 clean: rm -f procinfo procinfo.0 *.o *~ out --- procinfo.c +++ procinfo.c Mon Sep 17 14:56:55 2001 @@ -16,7 +16,7 @@ */ -static char *rcsid = "$Id: procinfo.c,v 1.56 2001/02/25 11:29:13 svm Exp svm $"; +static char *rcsid __attribute__ ((unused)) = "$Id: procinfo.c,v 1.56 2001/02/25 11:29:13 svm Exp svm $"; #include <errno.h> #include <fcntl.h> --- routines.c +++ routines.c Mon Sep 17 15:12:46 2001 @@ -16,7 +16,7 @@ */ -static char *rcsid = "$Id: routines.c,v 1.24 2001/02/24 23:30:35 svm Exp svm $"; +static char *rcsid __attribute__ ((unused)) = "$Id: routines.c,v 1.24 2001/02/24 23:30:35 svm Exp svm $"; #include <errno.h> #include <signal.h> @@ -390,19 +390,19 @@ unsigned int d, h, m, s; static char buf[22]; - t = t * 100 / HZ; - d = (int) (t / 8640000); - t = t - (long) (d * 8640000); - h = (int) (t / 360000); - t = t - (long) (h * 360000); - m = (int) (t / 6000); - t = t - (long) (m * 6000); - s = (int) (t / 100); - t = t - (long) (s * 100); + t *= 100 / HZ; + d = (unsigned int) (t / 8640000); + t = t - (unsigned long) (d * 8640000); + h = (unsigned int) (t / 360000); + t = t - (unsigned long) (h * 360000); + m = (unsigned int) (t / 6000); + t = t - (unsigned long) (m * 6000); + s = (unsigned int) (t / 100); + t = t - (unsigned long) (s * 100); if (d > 0) - sprintf (buf, "%3ud %2u:%02u:%02u.%02u", d, h, m, s, (int) t); + sprintf (buf, "%3ud %2u:%02u:%02u.%02u", d, h, m, s, (unsigned int) t); else - sprintf (buf, " %2u:%02u:%02u.%02u", h, m, s, (int) t); + sprintf (buf, " %2u:%02u:%02u.%02u", h, m, s, (unsigned int) t); return buf; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor