aboutsummaryrefslogtreecommitdiff
path: root/src/lib/cfuns-c.c
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-05-30 17:07:22 +0000
committerdos-reis <gdr@axiomatics.org>2011-05-30 17:07:22 +0000
commit72d3df9188861d62e9c6e1a29a720d6dc0696d99 (patch)
tree4d33deaf2b78e62f66a037654a3dbdb665016ed6 /src/lib/cfuns-c.c
parentf99ece56ccd39726097c11bb2f78f79c2ab340ef (diff)
downloadopen-axiom-72d3df9188861d62e9c6e1a29a720d6dc0696d99.tar.gz
fix const-correctness in old C codes
Diffstat (limited to 'src/lib/cfuns-c.c')
-rw-r--r--src/lib/cfuns-c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/cfuns-c.c b/src/lib/cfuns-c.c
index a4ae8f39..f0b7aed7 100644
--- a/src/lib/cfuns-c.c
+++ b/src/lib/cfuns-c.c
@@ -2,7 +2,7 @@
Copyright (C) 1991-2002, The Numerical Algorithms Group Ltd.
All rights reserved.
- Copyright (C) 2007-2010, Gabriel Dos Reis.
+ Copyright (C) 2007-2011, Gabriel Dos Reis.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -160,7 +160,7 @@ directoryp(char *path)
OPENAXIOM_C_EXPORT int
make_path_from_file(char *s, char *t)
{
- char *pos = "";
+ char *pos = NULL;
char *c;
/** simply copies the path name from t into s **/
@@ -209,7 +209,7 @@ make_path_from_file(char *s, char *t)
static inline int
axiom_has_write_access(const struct stat* file_info)
{
- int effetive_uid = geteuid();
+ uid_t effetive_uid = geteuid();
if (effetive_uid == 0)
return 1;