mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-03 06:45:51 +01:00
WINGs: Rename copy_file() to wcopy_file()
...in order to avoid clashes that happen during compilation of wmakerconf. This is a new function in WINGs, so renaming it at this point is not a big deal. Thanks to Rodolfo García for the heads up.
This commit is contained in:
@@ -201,7 +201,7 @@ char* wfindfileinarray(WMPropList* array, char *file);
|
||||
|
||||
char* wexpandpath(char *path);
|
||||
|
||||
int copy_file(char *toPath, char *srcFile, char *destFile);
|
||||
int wcopy_file(char *toPath, char *srcFile, char *destFile);
|
||||
|
||||
/* don't free the returned string */
|
||||
char* wgethomedir(void);
|
||||
|
||||
@@ -408,7 +408,7 @@ char *wfindfileinarray(WMPropList * array, char *file)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int copy_file(char *dir, char *src_file, char *dest_file)
|
||||
int wcopy_file(char *dir, char *src_file, char *dest_file)
|
||||
{
|
||||
FILE *src, *dst;
|
||||
size_t nread, nwritten;
|
||||
|
||||
@@ -2924,7 +2924,7 @@ static void customPaletteMenuNewFromFile(W_ColorPanel * panel)
|
||||
|
||||
/* Copy image to $(gnustepdir)/Library/Colors/ &
|
||||
* Add filename to history menu */
|
||||
if (copy_file(panel->configurationPath, filepath, filename) == 0) {
|
||||
if (wcopy_file(panel->configurationPath, filepath, filename) == 0) {
|
||||
|
||||
/* filepath is a "local" path now the file has been copied */
|
||||
wfree(filepath);
|
||||
|
||||
Reference in New Issue
Block a user