• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libtirpc/libtirpc-0005-rpcent-mark-getrpcbyname-name-argument-as-const-char.patch
Thomas PetazzoniThomas Petazzoni committed 18828103cdc10 Nov 2012
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 88147b753b86df7e7505ef8150f1329f7c6951cc Mon Sep 17 00:00:00 2001
2
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3
Date: Fri, 9 Nov 2012 19:37:24 +0100
4
Subject: [PATCH] rpcent: mark getrpcbyname name argument as const char *
5
​
6
This allows to match the glibc prototype and avoid compiling error
7
when building libtirpc against a C library that has RPC support.
8
​
9
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
---
11
 src/getrpcent.c    |    2 +-
12
 tirpc/rpc/rpcent.h |    2 +-
13
 2 files changed, 2 insertions(+), 2 deletions(-)
14
​
15
diff --git a/src/getrpcent.c b/src/getrpcent.c
16
index 645f18f..1b54b6d 100644
17
--- a/src/getrpcent.c
18
+++ b/src/getrpcent.c
19
@@ -138,7 +138,7 @@ no_yp:
20
 
21
 struct rpcent *
22
 getrpcbyname(name)
23
-   char *name;
24
+   const char *name;
25
 {
26
    struct rpcent *rpc = NULL;
27
    char **rp;
28
diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h
29
index 8ce05ed..120801d 100644
30
--- a/tirpc/rpc/rpcent.h
31
+++ b/tirpc/rpc/rpcent.h
32
@@ -61,7 +61,7 @@ extern struct rpcent *getrpcbynumber_r(int, struct rpcent *, char *, int);
33
 extern struct rpcent *getrpcent_r(struct rpcent *, char *, int);
34
 
35
 /* Old interfaces that return a pointer to a static area;  MT-unsafe */
36
-extern struct rpcent *getrpcbyname(char *);
37
+extern struct rpcent *getrpcbyname(const char *);
38
 extern struct rpcent *getrpcbynumber(int);
39
 extern struct rpcent *getrpcent(void);
40
 #endif
41
-- 
42
1.7.9.5
43
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.