[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 05/26: trans: rename a global variable
From: |
Samuel Thibault |
Subject: |
[hurd] 05/26: trans: rename a global variable |
Date: |
Sat, 02 Nov 2013 14:44:43 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit d0302f12c4d33eabbcbaf23e941ac33e1e364e3d
Author: Justus Winter <address@hidden>
Date: Tue Oct 8 15:49:03 2013 +0200
trans: rename a global variable
Rename the global variable "path" to "target_path" to make it more
unambiguous.
* trans/mtab.c: Rename global variable "path".
---
trans/mtab.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/trans/mtab.c b/trans/mtab.c
index 2973a0b..250de7d 100644
--- a/trans/mtab.c
+++ b/trans/mtab.c
@@ -37,7 +37,7 @@
#include "fsys_U.h"
-static char *path = NULL;
+static char *target_path = NULL;
static int insecure = 0;
/* Our control port. */
@@ -71,8 +71,8 @@ error_t parse_opt (int key, char *arg, struct argp_state
*state)
break;
case ARGP_KEY_ARG:
- path = realpath (arg, NULL);
- if (! path)
+ target_path = realpath (arg, NULL);
+ if (! target_path)
argp_error (state, "Error while canonicalizing path");
break;
@@ -105,12 +105,12 @@ trivfs_append_args (struct trivfs_control *fsys,
if (insecure)
{
- err = argz_add (argz, argz_len, path);
+ err = argz_add (argz, argz_len, target_path);
if (err)
return err;
}
- err = argz_add (argz, argz_len, path);
+ err = argz_add (argz, argz_len, target_path);
return err;
}
@@ -241,9 +241,9 @@ main (int argc, char *argv[])
{
/* One-shot mode. */
struct mtab mtab = { NULL, 0, 0 };
- err = mtab_populate (&mtab, path, insecure);
+ err = mtab_populate (&mtab, target_path, insecure);
if (err)
- error (5, err, "%s", path);
+ error (5, err, "%s", target_path);
if (mtab.contents)
printf ("%s", mtab.contents);
@@ -594,7 +594,7 @@ open_hook (struct trivfs_peropen *peropen)
mtab->contents = NULL;
mtab->contents_len = 0;
- return mtab_populate (mtab, path, insecure);
+ return mtab_populate (mtab, target_path, insecure);
}
static void
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 03/26: Fix memory leak in exec, (continued)
- [hurd] 03/26: Fix memory leak in exec, Samuel Thibault, 2013/11/02
- [hurd] 02/26: Fix memory leak in libnetfs, Samuel Thibault, 2013/11/02
- [hurd] 10/26: console-client: minor stylistic fix, Samuel Thibault, 2013/11/02
- [hurd] 04/26: Revert "tmpfs: drop privileges in the tmpfs translator", Samuel Thibault, 2013/11/02
- [hurd] 26/26: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2013/11/02
- [hurd] 09/26: console-client: fix error handling, Samuel Thibault, 2013/11/02
- [hurd] 11/26: console-client: replace function epilogue with console_exit, Samuel Thibault, 2013/11/02
- [hurd] 24/26: Fix use after free, Samuel Thibault, 2013/11/02
- [hurd] 12/26: term: fix read on a closed PTY, Samuel Thibault, 2013/11/02
- [hurd] 23/26: libshouldbeinlibc: fix error handling in maptime_map, Samuel Thibault, 2013/11/02
- [hurd] 05/26: trans: rename a global variable,
Samuel Thibault <=
- [hurd] 07/26: console-client: remove the pid file on clean exits, Samuel Thibault, 2013/11/02
- [hurd] 08/26: console-client: entitle console_exit with the noreturn attribute, Samuel Thibault, 2013/11/02
- [hurd] 06/26: libfshelp: properly free active translator entries, Samuel Thibault, 2013/11/02
- [hurd] 21/26: configure.ac: properly escape the test for X11/keysymdef.h, Samuel Thibault, 2013/11/02
- [hurd] 25/26: libports: fix error handling in _ports_create_port_internal, Samuel Thibault, 2013/11/02
- [hurd] 14/26: libdiskfs: fix removal of socket nodes, Samuel Thibault, 2013/11/02
- [hurd] 22/26: exec: Remove the remaining BFD related bits, Samuel Thibault, 2013/11/02
- [hurd] 13/26: pflocal: fix destruction of explicitely bound sockets, Samuel Thibault, 2013/11/02
- [hurd] 20/26: Make boot script accept more fsck values, Samuel Thibault, 2013/11/02
- [hurd] 19/26: Add xenl to hurd.ti, Samuel Thibault, 2013/11/02