summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-04-16 14:11:28 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-04-16 14:11:28 -0700
commitc5443aa547b94725ca257718935692212b5d272d (patch)
tree0c6820a19c828f8a330b804696ab9e809ce27c00 /lib-src
parentb58c5c4af7db6c19d8afd78f7152240a1523702b (diff)
downloademacs-c5443aa547b94725ca257718935692212b5d272d.tar.gz
* emacsclient.c (main): Don't use uninitialized var.
(IS_ANY_SEP): Remove; unused. (get_current_dir_name): Add an extern decl.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog6
-rw-r--r--lib-src/emacsclient.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index e3d7edf94bd..07d51ff14bd 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,9 @@
+2011-04-16 Paul Eggert <eggert@cs.ucla.edu>
+
+ * emacsclient.c (main): Don't use uninitialized var.
+ (IS_ANY_SEP): Remove; unused.
+ (get_current_dir_name): Add an extern decl.
+
2011-04-06 Paul Eggert <eggert@cs.ucla.edu>
Fix more problems found by GCC 4.6.0's static checks.
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index c5231fb9989..2aabc52e828 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -218,10 +218,8 @@ xmalloc (unsigned int size)
#define IS_DEVICE_SEP(_c_) ((_c_) == DEVICE_SEP)
#endif
#endif
-#ifndef IS_ANY_SEP
-#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))
-#endif
+char *get_current_dir_name (void);
/* Return the current working directory. Returns NULL on errors.
Any other returned value must be freed with free. This is used
@@ -1524,7 +1522,7 @@ start_daemon_and_retry_set_socket (void)
int
main (int argc, char **argv)
{
- int rl, needlf = 0;
+ int rl = 0, needlf = 0;
char *cwd, *str;
char string[BUFSIZ+1];
int null_socket_name IF_LINT ( = 0);