[svn-commits] eliel: branch eliel/cli-permissions r159773 - /team/eliel/cli-permissions/main/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Nov 29 08:42:58 CST 2008


Author: eliel
Date: Sat Nov 29 08:42:56 2008
New Revision: 159773

URL: http://svn.digium.com/view/asterisk?view=rev&rev=159773
Log:
Fix a compilation warning in OpenBSD.

(closes issue #13987)
Reported by: mvanbaak
Patches:
    2008112900_clipermissions-readcredentials-obsd.diff.txt
    (with minor changes by me)
uploaded by mvanbaak (license 7)

Modified:
    team/eliel/cli-permissions/main/asterisk.c

Modified: team/eliel/cli-permissions/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/team/eliel/cli-permissions/main/asterisk.c?view=diff&rev=159773&r1=159772&r2=159773
==============================================================================
--- team/eliel/cli-permissions/main/asterisk.c (original)
+++ team/eliel/cli-permissions/main/asterisk.c Sat Nov 29 08:42:56 2008
@@ -1002,8 +1002,10 @@
  */
 static int read_credentials(int fd, char *buffer, size_t size, struct console *con)
 {
+#if defined(SO_PEERCRED)
 	struct ucred cred;
 	socklen_t len = sizeof(cred);
+#endif
 	int result, uid, gid;
 
 	result = read(fd, buffer, size);




More information about the svn-commits mailing list