summaryrefslogtreecommitdiff
path: root/src/error.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2008-10-30 12:01:06 +0100
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-06 17:15:13 -0200
commitb01e82ce1deedb36c9696d4d27a3b9a5d5a52d08 (patch)
tree4e7d624bec961376da0ff497c2757699160d0483 /src/error.c
parent2aba1bc0583aeb3ee6e26e3bfacd123abef744d9 (diff)
ANSI C
convert all old style function declarations see also: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> http://bugs.freedesktop.org/show_bug.cgi?id=14683 http://bugs.freedesktop.org/attachment.cgi?id=14582 see also: Magnus Kessler <Magnus.Kessler@gmx.net> http://lists.freedesktop.org/archives/xorg/2008-October/039799.html http://lists.freedesktop.org/archives/xorg/attachments/20081030/b2ea5b1c/attachment-0001.bin
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c147
1 files changed, 67 insertions, 80 deletions
diff --git a/src/error.c b/src/error.c
index f0ce72a..44b8853 100644
--- a/src/error.c
+++ b/src/error.c
@@ -40,13 +40,12 @@ Author: Ralph Mor, X Consortium
void
-_IceErrorBadMinor (iceConn, majorOpcode, offendingMinor, severity)
-
-IceConn iceConn;
-int majorOpcode;
-int offendingMinor;
-int severity;
-
+_IceErrorBadMinor (
+ IceConn iceConn,
+ int majorOpcode,
+ int offendingMinor,
+ int severity
+)
{
IceErrorHeader (iceConn,
majorOpcode, offendingMinor,
@@ -60,13 +59,12 @@ int severity;
void
-_IceErrorBadState (iceConn, majorOpcode, offendingMinor, severity)
-
-IceConn iceConn;
-int majorOpcode;
-int offendingMinor;
-int severity;
-
+_IceErrorBadState (
+ IceConn iceConn,
+ int majorOpcode,
+ int offendingMinor,
+ int severity
+)
{
IceErrorHeader (iceConn,
majorOpcode, offendingMinor,
@@ -80,13 +78,12 @@ int severity;
void
-_IceErrorBadLength (iceConn, majorOpcode, offendingMinor, severity)
-
-IceConn iceConn;
-int majorOpcode;
-int offendingMinor;
-int severity;
-
+_IceErrorBadLength (
+ IceConn iceConn,
+ int majorOpcode,
+ int offendingMinor,
+ int severity
+)
{
IceErrorHeader (iceConn,
majorOpcode, offendingMinor,
@@ -100,15 +97,14 @@ int severity;
void
-_IceErrorBadValue (iceConn, majorOpcode, offendingMinor, offset, length, value)
-
-IceConn iceConn;
-int majorOpcode;
-int offendingMinor;
-int offset;
-int length; /* in bytes */
-IcePointer value;
-
+_IceErrorBadValue (
+ IceConn iceConn,
+ int majorOpcode,
+ int offendingMinor,
+ int offset,
+ int length, /* in bytes */
+ IcePointer value
+)
{
IceErrorHeader (iceConn,
majorOpcode, offendingMinor,
@@ -129,11 +125,10 @@ IcePointer value;
void
-_IceErrorNoAuthentication (iceConn, offendingMinor)
-
-IceConn iceConn;
-int offendingMinor;
-
+_IceErrorNoAuthentication (
+ IceConn iceConn,
+ int offendingMinor
+)
{
int severity = (offendingMinor == ICE_ConnectionSetup) ?
IceFatalToConnection : IceFatalToProtocol;
@@ -150,11 +145,10 @@ int offendingMinor;
void
-_IceErrorNoVersion (iceConn, offendingMinor)
-
-IceConn iceConn;
-int offendingMinor;
-
+_IceErrorNoVersion (
+ IceConn iceConn,
+ int offendingMinor
+)
{
int severity = (offendingMinor == ICE_ConnectionSetup) ?
IceFatalToConnection : IceFatalToProtocol;
@@ -171,12 +165,11 @@ int offendingMinor;
void
-_IceErrorSetupFailed (iceConn, offendingMinor, reason)
-
-IceConn iceConn;
-int offendingMinor;
-char *reason;
-
+_IceErrorSetupFailed (
+ IceConn iceConn,
+ int offendingMinor,
+ char *reason
+)
{
char *pBuf, *pStart;
int bytes;
@@ -203,12 +196,11 @@ char *reason;
void
-_IceErrorAuthenticationRejected (iceConn, offendingMinor, reason)
-
-IceConn iceConn;
-int offendingMinor;
-char *reason;
-
+_IceErrorAuthenticationRejected (
+ IceConn iceConn,
+ int offendingMinor,
+ char *reason
+)
{
char *pBuf, *pStart;
int bytes;
@@ -233,12 +225,11 @@ char *reason;
void
-_IceErrorAuthenticationFailed (iceConn, offendingMinor, reason)
-
-IceConn iceConn;
-int offendingMinor;
-char *reason;
-
+_IceErrorAuthenticationFailed (
+ IceConn iceConn,
+ int offendingMinor,
+ char *reason
+)
{
char *pBuf, *pStart;
int bytes;
@@ -263,11 +254,10 @@ char *reason;
void
-_IceErrorProtocolDuplicate (iceConn, protocolName)
-
-IceConn iceConn;
-char *protocolName;
-
+_IceErrorProtocolDuplicate (
+ IceConn iceConn,
+ char *protocolName
+)
{
char *pBuf, *pStart;
int bytes;
@@ -292,11 +282,10 @@ char *protocolName;
void
-_IceErrorMajorOpcodeDuplicate (iceConn, majorOpcode)
-
-IceConn iceConn;
-int majorOpcode;
-
+_IceErrorMajorOpcodeDuplicate (
+ IceConn iceConn,
+ int majorOpcode
+)
{
char mOp = (char) majorOpcode;
@@ -313,11 +302,10 @@ int majorOpcode;
void
-_IceErrorUnknownProtocol (iceConn, protocolName)
-
-IceConn iceConn;
-char *protocolName;
-
+_IceErrorUnknownProtocol (
+ IceConn iceConn,
+ char *protocolName
+)
{
char *pBuf, *pStart;
int bytes;
@@ -342,13 +330,12 @@ char *protocolName;
void
-_IceErrorBadMajor (iceConn, offendingMajor, offendingMinor, severity)
-
-IceConn iceConn;
-int offendingMajor;
-int offendingMinor;
-int severity;
-
+_IceErrorBadMajor (
+ IceConn iceConn,
+ int offendingMajor,
+ int offendingMinor,
+ int severity
+)
{
char maj = (char) offendingMajor;