]> arthur.barton.de Git - netatalk.git/commitdiff
Fix several warnings, remove const
authorRalph Boehme <sloowfranklin@gmail.com>
Wed, 2 Jan 2013 18:18:32 +0000 (19:18 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Wed, 2 Jan 2013 18:18:32 +0000 (19:18 +0100)
etc/afpd/file.c
etc/afpd/unix.c
etc/afpd/unix.h
etc/uams/uams_dhx2_pam.c
etc/uams/uams_dhx_pam.c
etc/uams/uams_pam.c
libatalk/vfs/unix.c

index 7f0e234a5defc6163fb10d3aaf06011619566072..c2a1413d4f8b2093d3aed5561bb2a93d4c0b1334 100644 (file)
@@ -1939,7 +1939,7 @@ delete:
 }
 
 /* ------------------------------ */
-static struct adouble *find_adouble(const AFPObj *obj, const struct vol *vol, struct path *path, struct ofork **of, struct adouble *adp)
+static struct adouble *find_adouble(const AFPObj *obj, struct vol *vol, struct path *path, struct ofork **of, struct adouble *adp)
 {
     int             ret;
 
index 31086bb679f41dd1a79a6a73ac9b577a10afbba6..7c90462874cd0cceec47f3c9836f42319e6a1937 100644 (file)
@@ -224,7 +224,7 @@ int setfilunixmode (const struct vol *vol, struct path* path, mode_t mode)
 
 
 /* --------------------- */
-int setdirunixmode(const struct vol *vol, const char *name, mode_t mode)
+int setdirunixmode(const struct vol *vol, char *name, mode_t mode)
 {
     LOG(log_debug, logtype_afpd, "setdirunixmode('%s', mode:%04o) {v_dperm:%04o}",
         fullpathname(name), mode, vol->v_dperm);
index 73a515b2dcf357496ffec0ae57aa67ca11f13422..3b3c281b528c57dd4c035243796340823c35ec8f 100644 (file)
@@ -213,7 +213,7 @@ extern int uquota_getvolspace (const AFPObj *obj, struct vol *, VolSpace *, VolS
 
 extern struct afp_options default_options;
 
-extern int setdirunixmode   (const struct vol *, const char *, mode_t);
+extern int setdirunixmode   (const struct vol *, char *, mode_t);
 extern int setdirmode       (const struct vol *, const char *, mode_t);
 extern int setdirowner      (const struct vol *, const char *, const uid_t, const gid_t);
 extern int setfilunixmode   (const struct vol *, struct path*, const mode_t);
index 0de4b5ceb0edaa02cbcfb1f031305514b7280398..cb1c507dd0623981cb75789d17c51e5fbfd49d0d 100644 (file)
@@ -136,7 +136,7 @@ error:
  * echo off means password.
  */
 static int PAM_conv (int num_msg,
-                     const struct pam_message **msg,
+                     struct pam_message **msg,
                      struct pam_response **resp,
                      void *appdata_ptr _U_) {
     int count = 0;
index 4c7d87c0cbf03fc4e592134ea52046ba382b994b..dbe24a2047acf8d46c420acbe88cef623466db42 100644 (file)
@@ -80,7 +80,7 @@ static char *PAM_password;
  * echo off means password.
  */
 static int PAM_conv (int num_msg,
-                     const struct pam_message **msg,
+                     struct pam_message **msg,
                      struct pam_response **resp,
                      void *appdata_ptr _U_) {
   int count = 0;
index 6f15ac0a30c660bbdec3939e66b0059e06643f5f..c3762c94a8e98ac021a368c3b719eb5c06acfd98 100644 (file)
@@ -54,7 +54,7 @@ extern UAM_MODULE_EXPORT void append(struct papfile *, const char *, int);
  * echo off means password.
  */
 static int PAM_conv (int num_msg,
-                     const struct pam_message **msg,
+                     struct pam_message **msg,
                      struct pam_response **resp,
                      void *appdata_ptr _U_) 
 {
index 40f14fb528a642102ad32976a2bc3fdc1705b8ab..f414bf597eaf4e0f59c11c83fb3f93d1295d85a4 100644 (file)
@@ -46,7 +46,7 @@ int setfilmode(const struct vol *vol, const char *name, mode_t mode, struct stat
 
     mode |= st->st_mode & ~mask; /* keep other bits from previous mode */
 
-    if (ochmod(name, mode & ~vol->v_umask, st, vol_syml_opt(vol) | O_NETATALK_ACL) < 0 && errno != EPERM ) {
+    if (ochmod((char *)name, mode & ~vol->v_umask, st, vol_syml_opt(vol) | O_NETATALK_ACL) < 0 && errno != EPERM ) {
         return -1;
     }
     return 0;