Bläddra i källkod

Ticket #47725 - compiler error on daemon.c

Description: This syntax is invalid for Solaris Studio Compiler:
  while((0 = getmntent(fp, &mnt))){
Applied the patch provided by cgrzemba (Thanks!!)

https://fedorahosted.org/389/ticket/47725

Reviewed by [email protected].
Noriko Hosoi 11 år sedan
förälder
incheckning
22fd3c28ca
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      ldap/servers/slapd/daemon.c

+ 1 - 1
ldap/servers/slapd/daemon.c

@@ -498,7 +498,7 @@ disk_mon_get_mount_point(char *dir)
 
     dev_id = s.st_dev;
 
-    while((0 = getmntent(fp, &mnt))){
+    while((0 == getmntent(fp, &mnt))){
         if (stat(mnt.mnt_mountp, &s) != 0) {
             continue;
         }