Revision 478 src/addrbook.c
| addrbook.c (revision 478) | ||
|---|---|---|
| 34 | 34 |
#include "addritem.h" |
| 35 | 35 |
#include "addrcache.h" |
| 36 | 36 |
#include "addrbook.h" |
| 37 |
#include "utils.h" |
|
| 37 | 38 |
|
| 38 | 39 |
#ifndef DEV_STANDALONE |
| 39 | 40 |
#include "prefs.h" |
| ... | ... | |
| 1071 | 1072 |
|
| 1072 | 1073 |
book->retVal = MGU_OPEN_FILE; |
| 1073 | 1074 |
#ifdef DEV_STANDALONE |
| 1074 |
fp = fopen( fileSpec, "wb" ); |
|
| 1075 |
fp = g_fopen( fileSpec, "wb" );
|
|
| 1075 | 1076 |
g_free( fileSpec ); |
| 1076 | 1077 |
if( fp ) {
|
| 1077 | 1078 |
fputs( "<?xml version=\"1.0\" ?>\n", fp ); |
| ... | ... | |
| 1672 | 1673 |
|
| 1673 | 1674 |
strcpy( buf, adbookdir ); |
| 1674 | 1675 |
strcat( buf, entry->d_name ); |
| 1675 |
stat( buf, &statbuf ); |
|
| 1676 |
g_stat( buf, &statbuf );
|
|
| 1676 | 1677 |
if( S_IFREG & statbuf.st_mode ) {
|
| 1677 | 1678 |
if( strncmp( entry->d_name, ADDRBOOK_PREFIX, lenpre ) == 0 ) {
|
| 1678 | 1679 |
if( strncmp( (entry->d_name) + lennum, ADDRBOOK_SUFFIX, lensuf ) == 0 ) {
|
Also available in: Unified diff