Skip to content

Commit

Permalink
Merge pull request #1471 from nmorey/dev/basename
Browse files Browse the repository at this point in the history
Switch to POSIX implementation of basename
  • Loading branch information
rleon authored Jun 5, 2024
2 parents 4b0c93a + e8b215a commit 1840c1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kernel-boot/rdma_rename.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
#include <stdbool.h>
#include <errno.h>
#include <unistd.h>
Expand Down
5 changes: 2 additions & 3 deletions librdmacm/examples/rping.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <endian.h>
#include <getopt.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <sys/types.h>
Expand Down Expand Up @@ -1253,9 +1252,9 @@ static int get_addr(char *dst, struct sockaddr *addr)
static void usage(const char *name)
{
printf("%s -s [-vVd] [-S size] [-C count] [-a addr] [-p port]\n",
basename(name));
name);
printf("%s -c [-vVd] [-S size] [-C count] [-I addr] -a addr [-p port]\n",
basename(name));
name);
printf("\t-c\t\tclient side\n");
printf("\t-I\t\tSource address to bind to for client.\n");
printf("\t-s\t\tserver side. To bind to any address with IPv6 use -a ::0\n");
Expand Down
2 changes: 1 addition & 1 deletion providers/mlx5/mlx5_vfio.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <string.h>
#include <libgen.h>
#include <sys/param.h>
#include <linux/vfio.h>
#include <sys/eventfd.h>
Expand Down

0 comments on commit 1840c1b

Please sign in to comment.