Displaying 5 results from an estimated 5 matches for "ps_init".
Did you mean:
xs_init
2014 Dec 04
1
[PATCH] fish: fix build warning when readline-devel is missing
...fish.c
@@ -641,10 +641,12 @@ shell_script (void)
#define FISH "><fs> "
+#ifdef HAVE_LIBREADLINE
static char *ps1 = NULL; /* GUESTFISH_PS1 */
static char *ps_output = NULL; /* GUESTFISH_OUTPUT */
-static char *ps_restore = NULL; /* GUESTFISH_RESTORE */
static char *ps_init = NULL; /* GUESTFISH_INIT */
+#endif /* HAVE_LIBREADLINE */
+static char *ps_restore = NULL; /* GUESTFISH_RESTORE */
static char *line_read = NULL;
static char *
@@ -698,10 +700,12 @@ script (int prompt)
struct parsed_command pcmd;
if (prompt) {
+#ifdef HAVE_LIBREADLINE
if (ps_i...
2015 Nov 22
1
Re: installation error
Never mind I was missing libreadline-dev
I gues this check would be good to be added with an error to the configure script since it creates error in compilation
Regards,
Peter
> On 22 Nov 2015, at 20:06, Keresztes Péter-Zoltán <zozo@z0z0.tk> wrote:
>
> Hello,
>
> I have got into a different issue while trying to compile the latest version of libguestfs:
>
> CC
2014 May 29
2
Re: libguestfs error
Hi Rich
I using ubuntu 13.10 with powerpc arch.
I tried the above stepss and below are the output of the related commands..
nm -D /usr/lib/powerpc-linux-gnu/libtinfo.so | grep tgetent
0000def0 T tgetent
ubuntu@t4240-ubuntu1310:~$ dpkg -S /usr/lib/powerpc-linux-gnu/libtinfo.so
libtinfo-dev:powerpc: /usr/lib/powerpc-linux-gnu/libtinfo.so
However I'm not able to perform rm -f config.cache
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...free (ps_output);
ps_output = strdup (str);
- if (!ps_output) {
- perror ("strdup");
- exit (EXIT_FAILURE);
- }
+ if (!ps_output)
+ error (EXIT_FAILURE, errno, "strdup");
}
str = getenv ("GUESTFISH_INIT");
if (str) {
free (ps_init);
ps_init = strdup (str);
- if (!ps_init) {
- perror ("strdup");
- exit (EXIT_FAILURE);
- }
+ if (!ps_init)
+ error (EXIT_FAILURE, errno, "strdup");
}
#endif
}
@@ -1557,10 +1536,8 @@ decode_ps1 (const char *str)
* future.
*/
ret = mal...
2014 May 29
2
Re: libguestfs error
...cit declaration of function 'time'
[-Wimplicit-function-declaration]
srandom (time (NULL));
^
fish.c: In function 'script':
fish.c:699:7: warning: implicit declaration of function 'decode_ps1'
[-Wimplicit-function-declaration]
CLEANUP_FREE char *pi = decode_ps1 (ps_init);
^
fish.c:699:31: warning: initialization makes pointer from integer without a
cast [enabled by default]
CLEANUP_FREE char *pi = decode_ps1 (ps_init);
^
fish.c:742:31: warning: initialization makes pointer from integer without a
cast [enabled by default...