Hello.
helper.c: In function 'hlp__match_path_envs':
helper.c:1423: error: 'environ' undeclared (first use in this function)
helper.c:1423: error: (Each undeclared identifier is reported only once
helper.c:1423: error: for each function it appears in.)
helper.c: In function 'hlp__format_path':
helper.c:1580: error: 'environ' undeclared (first use in this function)
Patch attached, but doesn't work completely. After applying
the patch, I still cannot compile:
revert.c: In function 'rev__do_changed':
revert.c:597: warning: format '%o' expects type 'unsigned int', but argument 7
has type 'mode_t'
CC status.c
status.c: In function 'st__print_status':
status.c:194: error: too few arguments to function 'hlp__format_path'
status.c: In function 'st__print_entry_info':
status.c:617: warning: format '%4o' expects type 'unsigned int', but argument 2
has type 'mode_t'
status.c:620: warning: format '%u' expects type 'unsigned int', but argument 2
has type 'uid_t'
status.c:620: warning: format '%u' expects type 'unsigned int', but argument 4
has type 'gid_t'
gmake[1]: *** [status.o] Error 1
gmake: *** [default-target] Error 2
Alexander
Index: configure.in
===================================================================
--- configure.in (revision 1255)
+++ configure.in (working copy)
@@ -120,7 +120,7 @@
AC_CHECK_HEADERS([linux/kdev_t.h],
[],
- [AC_MSG_FAILURE([
+ [AC_MSG_WARN([
*** MAJOR(), MINOR() and MAKEDEV() definitions not found.
*** I'll fake a definition, but that could make problems for ignore patterns
*** and commits/updates of device nodes.
Index: src/fsvs.c
===================================================================
--- src/fsvs.c (revision 1255)
+++ src/fsvs.c (working copy)
@@ -769,7 +769,7 @@
* in a clean list.
* - And calls the main action.
* */
-int main(int argc, char *args[])
+int main(int argc, char *args[], char *environ[])
{
struct estat root = { };
int status, help;
Index: src/helper.c
===================================================================
--- src/helper.c (revision 1255)
+++ src/helper.c (working copy)
@@ -1410,7 +1410,7 @@
* the entries, and set pointers for matching paths; so for displaying them
* it suffices to walk the tree up until an entry with \c arg set is found.
* */
-int hlp__match_path_envs(struct estat *root)
+int hlp__match_path_envs(struct estat *root, char *environ[])
{
int status;
char **env;
@@ -1468,7 +1468,7 @@
* \todo Build the \c wc_relative_path only if necessary - remove the
* parameter from the caller chains. */
int hlp__format_path(struct estat *sts, char *wc_relative_path,
- char **output)
+ char **output, char *environ[])
{
int status;
static struct cache_entry_t *cache=NULL;
Index: src/helper.h
===================================================================
--- src/helper.h (revision 1255)
+++ src/helper.h (working copy)
@@ -124,11 +124,11 @@
int hlp__chrooter(void);
/** Distribute the environment variables on the loaded entries. */
-int hlp__match_path_envs(struct estat *root);
+int hlp__match_path_envs(struct estat *root, char *environ[]);
/** Return a path that gets displayed for the user. */
int hlp__format_path(struct estat *sts, char *wc_relative_path,
- char **output);
+ char **output, char *environ[]);
/** Find a \c GID by group name, cached. */
int hlp__get_gid(char *group, gid_t *gid, apr_pool_t *pool);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]