uchar for smbval patch
Dan Foster
dsf at gblx.net
Mon Jan 15 14:24:57 UTC 2001
Attached below is a patch that will make it successfully compile on AIX
systems using IBM's C/C++ compiler. Minor portability tweak that should
also make it 'more correct' on other platforms as well.
I successfully built it fine with Linux/gcc and Solaris/gcc as well.
Also, with Solaris/Forte C 6.0.
It's against the inn-current sources as of 20 minutes ago.
If it looks correct, could someone commit it to the source tree? Thanks!
-Dan
diff -ru inn/authprogs/smbval/smbencrypt.c inn.dev/authprogs/smbval/smbencrypt.c
--- inn/authprogs/smbval/smbencrypt.c Mon Oct 23 12:05:40 2000
+++ inn.dev/authprogs/smbval/smbencrypt.c Mon Jan 15 09:00:29 2001
@@ -28,7 +28,7 @@
#include "config.h"
#include "smblib-priv.h"
-#define uchar unsigned char
+typedef unsigned char uchar;
extern int DEBUGLEVEL;
#include "byteorder.h"
diff -ru inn/authprogs/smbval/smblib.c inn.dev/authprogs/smbval/smblib.c
--- inn/authprogs/smbval/smblib.c Mon Oct 23 02:38:11 2000
+++ inn.dev/authprogs/smbval/smblib.c Mon Jan 15 09:00:25 2001
@@ -28,7 +28,7 @@
int SMBlib_errno;
int SMBlib_SMB_Error;
#define SMBLIB_ERRNO
-#define uchar unsigned char
+typedef unsigned char uchar;
#include "config.h"
#include "smblib-priv.h"
More information about the inn-workers
mailing list