mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
changes reqd to compile on linux
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/branches/class@4150 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
4d34613b6e
commit
59e3083acd
2
fwrap.c
2
fwrap.c
@ -73,7 +73,7 @@ f2cstring(char* fstring, int len)
|
||||
}
|
||||
|
||||
void
|
||||
padfstring(char *dest, char *src, unsigned int len)
|
||||
padfstring(char *dest, const char *src, unsigned int len)
|
||||
{
|
||||
unsigned int sofar;
|
||||
|
||||
|
||||
8
pp_sys.c
8
pp_sys.c
@ -6,7 +6,7 @@
|
||||
#include <string.h> /* strlen */
|
||||
|
||||
extern char *f2cstring(char* fstring, int len);
|
||||
extern void padfstring(char *dest, char *src, unsigned int len);
|
||||
extern void padfstring(char *dest, const char *src, unsigned int len);
|
||||
|
||||
#define fullpathpp fullpathpp_
|
||||
#define splitpathpp splitpathpp_
|
||||
@ -63,8 +63,8 @@ splitpathpp(char *path, char* drive, char* dir, char* name, char* ext,
|
||||
unsigned int ext_len)
|
||||
{
|
||||
int i;
|
||||
int dot = 0;
|
||||
int slash = 0;
|
||||
size_t dot = 0;
|
||||
size_t slash = 0;
|
||||
int slash_found = 0;
|
||||
char *cpath = NULL;
|
||||
size_t plen = 0;
|
||||
@ -72,7 +72,7 @@ splitpathpp(char *path, char* drive, char* dir, char* name, char* ext,
|
||||
/* linux has no drives */
|
||||
padfstring(drive, "", drive_len);
|
||||
|
||||
if (cpath = f2cstring(path, path_len)) {
|
||||
if ((cpath = f2cstring(path, path_len))) {
|
||||
plen = strlen(cpath);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user