Browse Source

fix compilation warnings in PamAuth

z3APA3A 10 years ago
parent
commit
6db42f70e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/plugins/PamAuth/pamauth.c

+ 1 - 1
src/plugins/PamAuth/pamauth.c

@@ -124,7 +124,7 @@ int start(struct pluginlink * pluginlink, int argc, unsigned char** argv)
  if(argc < 2) return 1;
  if(argc < 2) return 1;
  pl = pluginlink;
  pl = pluginlink;
  if(service) pl->myfree(service);
  if(service) pl->myfree(service);
- service=pl->mystrdup(argv[1]); 
+ service=(unsigned char *)pl->mystrdup((char *)argv[1]); 
 
 
  if (already_loaded) { return (0); }
  if (already_loaded) { return (0); }