mirror of https://github.com/mkerrisk/man-pages
Various pages: Consistently use '*argv[]'
Scripted change: $ find man? -type f \ | sed -i 's/int argc, char \*\*argv/int argc, char \*argv\[\]/'; Signed-off-by: Thomas Voss <thomasavoss@protonmail.com> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
fbe71b1b79
commit
aa1f53ccf9
|
@ -1212,7 +1212,7 @@ riscv (since Linux 5.1).
|
||||||
* 4. print number of received TCP/UDP packets every second
|
* 4. print number of received TCP/UDP packets every second
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int sock, map_fd, prog_fd, key;
|
int sock, map_fd, prog_fd, key;
|
||||||
long long value = 0, tcp_cnt, udp_cnt;
|
long long value = 0, tcp_cnt, udp_cnt;
|
||||||
|
|
|
@ -236,7 +236,7 @@ or server-side-copy (in the case of NFS).
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int fd_in, fd_out;
|
int fd_in, fd_out;
|
||||||
struct stat stat;
|
struct stat stat;
|
||||||
|
|
|
@ -358,7 +358,7 @@ slow_path(int *read_a)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int read_a, read_b;
|
int read_a, read_b;
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ slow_path(int *read_a)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int read_a, read_b;
|
int read_a, read_b;
|
||||||
|
|
||||||
|
|
|
@ -3762,7 +3762,7 @@ perf_event_open(struct perf_event_attr *hw_event, pid_t pid,
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
struct perf_event_attr pe;
|
struct perf_event_attr pe;
|
||||||
long long count;
|
long long count;
|
||||||
|
|
|
@ -1199,7 +1199,7 @@ install_filter(int syscall_nr, int t_arch, int f_errno)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
if (argc < 5) {
|
if (argc < 5) {
|
||||||
fprintf(stderr, "Usage: "
|
fprintf(stderr, "Usage: "
|
||||||
|
|
|
@ -124,7 +124,7 @@ compmi(const void *m1, const void *m2)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
qsort(months, nr_of_months, sizeof(months[0]), compmi);
|
qsort(months, nr_of_months, sizeof(months[0]), compmi);
|
||||||
for (int i = 1; i < argc; i++) {
|
for (int i = 1; i < argc; i++) {
|
||||||
|
|
|
@ -491,7 +491,7 @@ with most of its features.
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
int digit_optind = 0;
|
int digit_optind = 0;
|
||||||
|
|
|
@ -160,7 +160,7 @@ The following program expects suboptions following a "\-o" option.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
enum {
|
enum {
|
||||||
RO_OPT = 0,
|
RO_OPT = 0,
|
||||||
|
|
|
@ -180,7 +180,7 @@ threadfunc(void *parm)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
|
@ -240,7 +240,7 @@ is approximately that of "ls [a-c]*.c".
|
||||||
#include <wordexp.h>
|
#include <wordexp.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
wordexp_t p;
|
wordexp_t p;
|
||||||
char **w;
|
char **w;
|
||||||
|
|
|
@ -1069,7 +1069,7 @@ $ \fBmkdir \-p /home/user/testdir\fP # In another terminal
|
||||||
#define BUF_SIZE 256
|
#define BUF_SIZE 256
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int fd, ret, event_fd, mount_fd;
|
int fd, ret, event_fd, mount_fd;
|
||||||
ssize_t len, path_len;
|
ssize_t len, path_len;
|
||||||
|
|
Loading…
Reference in New Issue