Deleted Added
full compact
apm.c (4075) apm.c (8857)
1/*
2 * LP (Laptop Package)
3 *
4 * Copyright (C) 1994 by HOSOKAWA Tatasumi <hosokawa@mt.cs.keio.ac.jp>
5 *
6 * This software may be used, modified, copied, distributed, and sold,
7 * in both source and binary form provided that the above copyright and
1/*
2 * LP (Laptop Package)
3 *
4 * Copyright (C) 1994 by HOSOKAWA Tatasumi <hosokawa@mt.cs.keio.ac.jp>
5 *
6 * This software may be used, modified, copied, distributed, and sold,
7 * in both source and binary form provided that the above copyright and
8 * these terms are retained. Under no circumstances is the author
9 * responsible for the proper functioning of this software, nor does
10 * the author assume any responsibility for damages incurred with its
8 * these terms are retained. Under no circumstances is the author
9 * responsible for the proper functioning of this software, nor does
10 * the author assume any responsibility for damages incurred with its
11 * use.
12 *
13 * Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
14 */
15
16#include <stdio.h>
17#include <string.h>
18#include <sys/file.h>

--- 61 unchanged lines hidden (view full) ---

80 printf("\n");
81}
82
83int main(int argc, char *argv[])
84{
85 int i, j, fd;
86 int sleep = 0, all_info = 1, batt_status = 0, batt_life = 0, ac_status = 0;
87 char *cmdname;
11 * use.
12 *
13 * Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
14 */
15
16#include <stdio.h>
17#include <string.h>
18#include <sys/file.h>

--- 61 unchanged lines hidden (view full) ---

80 printf("\n");
81}
82
83int main(int argc, char *argv[])
84{
85 int i, j, fd;
86 int sleep = 0, all_info = 1, batt_status = 0, batt_life = 0, ac_status = 0;
87 char *cmdname;
88
88
89 main_argc = argc;
90 main_argv = argv;
91 if ((cmdname = strrchr(argv[0], '/')) != NULL) {
92 cmdname++;
93 }
94 else {
95 cmdname = argv[0];
96 }

--- 65 unchanged lines hidden ---
89 main_argc = argc;
90 main_argv = argv;
91 if ((cmdname = strrchr(argv[0], '/')) != NULL) {
92 cmdname++;
93 }
94 else {
95 cmdname = argv[0];
96 }

--- 65 unchanged lines hidden ---