[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/geas/src geas-server.c
From: |
Daniel E. Baumann |
Subject: |
gnue/geas/src geas-server.c |
Date: |
Sun, 27 May 2001 09:09:09 -0700 |
CVSROOT: /cvs
Module name: gnue
Changes by: Daniel E. Baumann <address@hidden> 01/05/27 09:09:08
Modified files:
geas/src : geas-server.c
Log message:
This time really format the file correctly.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/geas-server.c.diff?cvsroot=OldCVS&tr1=1.87&tr2=1.88&r1=text&r2=text
Patches:
Index: gnue/geas/src/geas-server.c
diff -u gnue/geas/src/geas-server.c:1.87 gnue/geas/src/geas-server.c:1.88
--- gnue/geas/src/geas-server.c:1.87 Sun May 27 08:31:55 2001
+++ gnue/geas/src/geas-server.c Sun May 27 09:09:08 2001
@@ -612,7 +612,7 @@
#ifdef USE_LIBGDA
" All libgda supported databases"
#endif
- );
+ );
fprintf (fp,
"\nCopyright 2001 Free Software Foundation\n"
@@ -905,7 +905,7 @@
/* show passwords for security debugging */
show_configuration (configdata, TRUE);
#else
- /* hide passwords when not debugging security */
+ /* hide passwords when not debugging security */
show_configuration (configdata, FALSE);
#endif
fprintf (stdout, "\n");
@@ -1341,26 +1341,27 @@
while ((next = readdir (reading)) != NULL)
{
- err = lstat (g_strdup_printf ("%s%s", currpath->str,
next->d_name),
- &s);
- if (err == -1)
- {
- perror (errno);
- exit (-1);
- }
+ err =
+ lstat (g_strdup_printf ("%s%s", currpath->str, next->d_name),
+ &s);
+ if (err == -1)
+ {
+ perror (errno);
+ exit (-1);
+ }
if (S_ISLNK (s.st_mode))
{
- linkbuf = g_new (gchar*, PATH_MAX + 2);
+ linkbuf = g_new (gchar *, PATH_MAX + 2);
linksize =
readlink (g_strdup_printf
("%s/%s", currpath->str, next->d_name), linkbuf,
PATH_MAX + 1);
- if (linksize == -1)
- {
- perror (errno);
- exit (-1);
- }
- linkbuf[linksize] = '\0';
+ if (linksize == -1)
+ {
+ perror (errno);
+ exit (-1);
+ }
+ linkbuf[linksize] = '\0';
debug_output (DEBUGLEVEL_HIGH, "Link found: %s -> %s",
g_strdup_printf ("%s%s", currpath->str,
next->d_name), linkbuf);
@@ -1370,11 +1371,11 @@
&& g_strcasecmp (currpath->str, linkbuf))
{
err = stat (linkbuf, &s2);
- if (err == -1)
- {
- perror (strerror (errno));
- exit (-1);
- }
+ if (err == -1)
+ {
+ perror (strerror (errno));
+ exit (-1);
+ }
if (S_ISDIR (s2.st_mode))
{
debug_output (DEBUGLEVEL_MEDIUM, "Appending %s/",
@@ -1388,7 +1389,8 @@
}
if (S_ISDIR (s.st_mode))
{
- debug_output (DEBUGLEVEL_HIGH, "%s%s/ is a Directory.",
currpath->str, next->d_name);
+ debug_output (DEBUGLEVEL_HIGH, "%s%s/ is a Directory.",
+ currpath->str, next->d_name);
is_dir = TRUE;
debug_output (DEBUGLEVEL_MEDIUM, "Appending %s%s/",
currpath->str, next->d_name);
@@ -1579,16 +1581,16 @@
fclose (fp);
/*
- printf( "%s %s reserved in %s\n" ,
- "position" , is_word_reserved("position",OQL_DBTYPE_MYSQL)?"is":"isn't" ,
"MySQL" );
- printf( "%s %s reserved in %s\n" ,
- "all" , is_word_reserved("all",OQL_DBTYPE_MYSQL)?"is":"isn't" , "MySQL" );
-
- printf( "%s %s reserved in %s\n" ,
- "position" ,
is_word_reserved("position",OQL_DBTYPE_POSTGRESQL)?"is":"isn't" , "PostgreSQL"
);
- printf( "%s %s reserved in %s\n" ,
- "all" , is_word_reserved("all",OQL_DBTYPE_POSTGRESQL)?"is":"isn't" ,
"PostgreSQL" );
- */
+ printf( "%s %s reserved in %s\n" ,
+ "position" , is_word_reserved("position",OQL_DBTYPE_MYSQL)?"is":"isn't" ,
"MySQL" );
+ printf( "%s %s reserved in %s\n" ,
+ "all" , is_word_reserved("all",OQL_DBTYPE_MYSQL)?"is":"isn't" , "MySQL" );
+
+ printf( "%s %s reserved in %s\n" ,
+ "position" ,
is_word_reserved("position",OQL_DBTYPE_POSTGRESQL)?"is":"isn't" , "PostgreSQL"
);
+ printf( "%s %s reserved in %s\n" ,
+ "all" , is_word_reserved("all",OQL_DBTYPE_POSTGRESQL)?"is":"isn't" ,
"PostgreSQL" );
+ */
}
struct DatabaseAliases