aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/emacsclient.c
diff options
context:
space:
mode:
authorJoakim Verona2011-02-05 11:23:09 +0100
committerJoakim Verona2011-02-05 11:23:09 +0100
commit4bd51ad5c3445b644dfb017d5b57b10a90aa325f (patch)
tree894801e7308ce4ecc34933f959e28f4b9cff9533 /lib-src/emacsclient.c
parent13cfe8df462ab8da9f0028e16cc84dcaceaca3d1 (diff)
parent9bcaafce5351d270ac514e23cb69ff1a5fd35229 (diff)
downloademacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.tar.gz
emacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.zip
merge from upstream. currently seems to have bitroted and i get segfaults
Diffstat (limited to 'lib-src/emacsclient.c')
-rw-r--r--lib-src/emacsclient.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index b60b2661805..e5484b987e2 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1,6 +1,5 @@
1/* Client process that communicates with GNU Emacs acting as server. 1/* Client process that communicates with GNU Emacs acting as server.
2 Copyright (C) 1986, 1987, 1994, 1999, 2000, 2001, 2002, 2003, 2004, 2 Copyright (C) 1986-1987, 1994, 1999-2011 Free Software Foundation, Inc.
3 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4 3
5This file is part of GNU Emacs. 4This file is part of GNU Emacs.
6 5
@@ -74,10 +73,8 @@ char *w32_getenv (char *);
74#include <stdarg.h> 73#include <stdarg.h>
75#include <ctype.h> 74#include <ctype.h>
76#include <stdio.h> 75#include <stdio.h>
77#include "getopt.h" 76#include <getopt.h>
78#ifdef HAVE_UNISTD_H 77#include <unistd.h>
79# include <unistd.h>
80#endif
81 78
82#include <pwd.h> 79#include <pwd.h>
83#include <sys/stat.h> 80#include <sys/stat.h>
@@ -857,7 +854,7 @@ unquote_argument (char *str)
857 854
858 855
859int 856int
860file_name_absolute_p (const unsigned char *filename) 857file_name_absolute_p (const char *filename)
861{ 858{
862 /* Sanity check, it shouldn't happen. */ 859 /* Sanity check, it shouldn't happen. */
863 if (! filename) return FALSE; 860 if (! filename) return FALSE;
@@ -870,7 +867,7 @@ file_name_absolute_p (const unsigned char *filename)
870 867
871#ifdef WINDOWSNT 868#ifdef WINDOWSNT
872 /* X:\xxx is always absolute. */ 869 /* X:\xxx is always absolute. */
873 if (isalpha (filename[0]) 870 if (isalpha ((unsigned char) filename[0])
874 && filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/')) 871 && filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/'))
875 return TRUE; 872 return TRUE;
876 873
@@ -1225,6 +1222,9 @@ set_local_socket (void)
1225 if (!tmpdir) 1222 if (!tmpdir)
1226 { 1223 {
1227#ifdef DARWIN_OS 1224#ifdef DARWIN_OS
1225#ifndef _CS_DARWIN_USER_TEMP_DIR
1226#define _CS_DARWIN_USER_TEMP_DIR 65537
1227#endif
1228 size_t n = confstr (_CS_DARWIN_USER_TEMP_DIR, NULL, (size_t) 0); 1228 size_t n = confstr (_CS_DARWIN_USER_TEMP_DIR, NULL, (size_t) 0);
1229 if (n > 0) 1229 if (n > 0)
1230 { 1230 {
@@ -1801,7 +1801,5 @@ strerror (errnum)
1801 1801
1802#endif /* ! HAVE_STRERROR */ 1802#endif /* ! HAVE_STRERROR */
1803 1803
1804/* arch-tag: f39bb9c4-73eb-477e-896d-50832e2ca9a7
1805 (do not change this comment) */
1806 1804
1807/* emacsclient.c ends here */ 1805/* emacsclient.c ends here */