[PATCH] Fix Bug 12693 dbwrap_watch.c syntax error before or at: }

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix Bug 12693 dbwrap_watch.c syntax error before or at: }

Samba - samba-technical mailing list
Here is a fix for Bug 12693 titled:
dbwrap_watch.c", line 281: syntax error before or at: }

From 74531334f3fe38fe420ab59b3f0f1c48d0754249 Mon Sep 17 00:00:00 2001
From: Tom <[hidden email]>
Date: Wed, 15 Mar 2017 12:08:33 -0400
Subject: [PATCH] Changes to make the Solaris C compiler happy.

Fix Bug 12693 dbwrap_watch.c syntax error before or at: }
Signed-off-by: Tom schulz <[hidden email]>
---
 source3/lib/dbwrap/dbwrap_watch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c
index 842ab86..efff478 100644
--- a/source3/lib/dbwrap/dbwrap_watch.c
+++ b/source3/lib/dbwrap/dbwrap_watch.c
@@ -279,7 +279,7 @@ static struct db_record *dbwrap_watched_fetch_locked(
  num_watchers = dbwrap_watched_parse(subrec_value, NULL, 0, NULL, NULL);
  if (num_watchers == -1) {
  /* Fresh or invalid record */
- rec->value = (TDB_DATA) {};
+ rec->value = (TDB_DATA) { 0 };
  return rec;
  }
 
--
2.6.1


Tom Schulz
Applied Dynamics Intl.
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix Bug 12693 dbwrap_watch.c syntax error before or at: }

Samba - samba-technical mailing list
On Thu, Mar 16, 2017 at 10:16:40AM -0400, Thomas Schulz via samba-technical wrote:

> Here is a fix for Bug 12693 titled:
> dbwrap_watch.c", line 281: syntax error before or at: }
>
> From 74531334f3fe38fe420ab59b3f0f1c48d0754249 Mon Sep 17 00:00:00 2001
> From: Tom <[hidden email]>
> Date: Wed, 15 Mar 2017 12:08:33 -0400
> Subject: [PATCH] Changes to make the Solaris C compiler happy.
>
> Fix Bug 12693 dbwrap_watch.c syntax error before or at: }
> Signed-off-by: Tom schulz <[hidden email]>

Reviewed-by: Volker Lendecke <[hidden email]>

Someone else?

Thanks, Volker

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix Bug 12693 dbwrap_watch.c syntax error before or at: }

Samba - samba-technical mailing list
On Thu, Mar 16, 2017 at 03:45:48PM +0100, Volker Lendecke via samba-technical wrote:

> On Thu, Mar 16, 2017 at 10:16:40AM -0400, Thomas Schulz via samba-technical wrote:
> > Here is a fix for Bug 12693 titled:
> > dbwrap_watch.c", line 281: syntax error before or at: }
> >
> > From 74531334f3fe38fe420ab59b3f0f1c48d0754249 Mon Sep 17 00:00:00 2001
> > From: Tom <[hidden email]>
> > Date: Wed, 15 Mar 2017 12:08:33 -0400
> > Subject: [PATCH] Changes to make the Solaris C compiler happy.
> >
> > Fix Bug 12693 dbwrap_watch.c syntax error before or at: }
> > Signed-off-by: Tom schulz <[hidden email]>
>
> Reviewed-by: Volker Lendecke <[hidden email]>
>
> Someone else?

Reviewed-by: Jeremy Allison <[hidden email]>

Pushed ! Thanks.