mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
* Include proper prototypes for exit() and strlen().
* Fix a spelling error in the description of a command line argument. Approved by: sumikawa Feature safe: yes
This commit is contained in:
parent
6d9fd6003a
commit
638da22aa9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294244
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= xbattbar
|
||||
PORTVERSION= 1.4.2
|
||||
PORTREVISION= 6
|
||||
PORTREVISION= 7
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://iplab.aist-nara.ac.jp/member/suguru/
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
|
@ -1,6 +1,15 @@
|
||||
--- xbattbar.c.orig Fri Feb 2 13:25:29 2001
|
||||
+++ xbattbar.c Wed Dec 13 00:35:49 2006
|
||||
@@ -501,6 +501,10 @@
|
||||
--- xbattbar.c.orig 2001-02-02 06:25:29.000000000 +0100
|
||||
+++ xbattbar.c 2012-04-04 17:47:34.000000000 +0200
|
||||
@@ -29,6 +29,8 @@ static char *ReleaseVersion="1.4.2";
|
||||
#include <sys/time.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -501,6 +503,10 @@ void battery_check(void)
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
|
||||
@ -11,7 +20,7 @@
|
||||
#include <machine/apm_bios.h>
|
||||
|
||||
#define APMDEV21 "/dev/apm0"
|
||||
@@ -515,54 +519,90 @@
|
||||
@@ -515,54 +521,90 @@ void battery_check(void)
|
||||
#define APM_STAT_BATT_LOW 1
|
||||
#define APM_STAT_BATT_CRITICAL 2
|
||||
#define APM_STAT_BATT_CHARGING 3
|
||||
|
11
sysutils/xbattbar/files/patch-xbattbar.man
Normal file
11
sysutils/xbattbar/files/patch-xbattbar.man
Normal file
@ -0,0 +1,11 @@
|
||||
--- xbattbar.man.orig 2012-04-04 17:49:01.000000000 +0200
|
||||
+++ xbattbar.man 2012-04-04 17:49:17.000000000 +0200
|
||||
@@ -58,7 +58,7 @@ forces the status indicator to be at the
|
||||
display,
|
||||
respectively.
|
||||
Though it's a default, you can also use
|
||||
-.Nm buttom
|
||||
+.Nm bottom
|
||||
as the option.
|
||||
.Pp
|
||||
In the case the AC line is on-line (plugged in),
|
Loading…
Reference in New Issue
Block a user