* [PATCH] uncrustify: clean up whitespace in notmuch-show.c
@ 2019-06-25 0:57 Daniel Kahn Gillmor
2019-07-03 4:31 ` [PATCH v2] notmuch-show: run uncrustify Daniel Kahn Gillmor
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Kahn Gillmor @ 2019-06-25 0:57 UTC (permalink / raw)
To: Notmuch Mail
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
---
notmuch-show.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/notmuch-show.c b/notmuch-show.c
index 9779cfa5..21792a57 100644
--- a/notmuch-show.c
+++ b/notmuch-show.c
@@ -492,7 +492,7 @@ format_part_text (const void *ctx, sprinter_t *sp, mime_node_t *node,
/* The disposition and content-type metadata are associated with
* the envelope for message parts */
GMimeObject *meta = node->envelope_part ? (
- GMIME_OBJECT (node->envelope_part) ) : node->part ;
+ GMIME_OBJECT (node->envelope_part) ) : node->part;
GMimeContentType *content_type = g_mime_object_get_content_type (meta);
const bool leaf = GMIME_IS_PART (node->part);
GMimeStream *stream = params->out_stream;
@@ -515,7 +515,7 @@ format_part_text (const void *ctx, sprinter_t *sp, mime_node_t *node,
const char *disposition = _get_disposition (meta);
const char *cid = g_mime_object_get_content_id (meta);
const char *filename = leaf ? (
- g_mime_part_get_filename (GMIME_PART (node->part)) ) : NULL ;
+ g_mime_part_get_filename (GMIME_PART (node->part)) ) : NULL;
if (disposition &&
strcasecmp (disposition, GMIME_DISPOSITION_ATTACHMENT) == 0)
@@ -688,7 +688,7 @@ format_part_sprinter (const void *ctx, sprinter_t *sp, mime_node_t *node,
/* The disposition and content-type metadata are associated with
* the envelope for message parts */
GMimeObject *meta = node->envelope_part ? (
- GMIME_OBJECT (node->envelope_part) ): node->part;
+ GMIME_OBJECT (node->envelope_part) ) : node->part;
GMimeContentType *content_type = g_mime_object_get_content_type (meta);
char *content_string;
const char *disposition = _get_disposition (meta);
@@ -965,7 +965,7 @@ show_message (void *ctx,
}
}
}
- DONE :
+ DONE:
talloc_free (local);
return status;
}
@@ -1320,7 +1320,7 @@ notmuch_show_command (notmuch_config_t *config, int argc, char *argv[])
ret = do_show (config, query, formatter, sprinter, ¶ms);
}
- DONE :
+ DONE:
g_mime_stream_flush (params.out_stream);
g_object_unref (params.out_stream);
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v2] notmuch-show: run uncrustify
2019-06-25 0:57 [PATCH] uncrustify: clean up whitespace in notmuch-show.c Daniel Kahn Gillmor
@ 2019-07-03 4:31 ` Daniel Kahn Gillmor
2019-07-05 15:58 ` David Bremner
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Kahn Gillmor @ 2019-07-03 4:31 UTC (permalink / raw)
To: Notmuch Mail
This is the result of running:
$ uncrustify --replace --config devel/uncrustify.cfg *.c *.h
In the top level source directory. I was using uncrustify
0.68.1+dfsg1-2.
I do not know why these changes were not caught in
33382c2b5ba2537952a60ea378feff36961e4713
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
---
notmuch-show.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/notmuch-show.c b/notmuch-show.c
index 9779cfa5..21792a57 100644
--- a/notmuch-show.c
+++ b/notmuch-show.c
@@ -492,7 +492,7 @@ format_part_text (const void *ctx, sprinter_t *sp, mime_node_t *node,
/* The disposition and content-type metadata are associated with
* the envelope for message parts */
GMimeObject *meta = node->envelope_part ? (
- GMIME_OBJECT (node->envelope_part) ) : node->part ;
+ GMIME_OBJECT (node->envelope_part) ) : node->part;
GMimeContentType *content_type = g_mime_object_get_content_type (meta);
const bool leaf = GMIME_IS_PART (node->part);
GMimeStream *stream = params->out_stream;
@@ -515,7 +515,7 @@ format_part_text (const void *ctx, sprinter_t *sp, mime_node_t *node,
const char *disposition = _get_disposition (meta);
const char *cid = g_mime_object_get_content_id (meta);
const char *filename = leaf ? (
- g_mime_part_get_filename (GMIME_PART (node->part)) ) : NULL ;
+ g_mime_part_get_filename (GMIME_PART (node->part)) ) : NULL;
if (disposition &&
strcasecmp (disposition, GMIME_DISPOSITION_ATTACHMENT) == 0)
@@ -688,7 +688,7 @@ format_part_sprinter (const void *ctx, sprinter_t *sp, mime_node_t *node,
/* The disposition and content-type metadata are associated with
* the envelope for message parts */
GMimeObject *meta = node->envelope_part ? (
- GMIME_OBJECT (node->envelope_part) ): node->part;
+ GMIME_OBJECT (node->envelope_part) ) : node->part;
GMimeContentType *content_type = g_mime_object_get_content_type (meta);
char *content_string;
const char *disposition = _get_disposition (meta);
@@ -965,7 +965,7 @@ show_message (void *ctx,
}
}
}
- DONE :
+ DONE:
talloc_free (local);
return status;
}
@@ -1320,7 +1320,7 @@ notmuch_show_command (notmuch_config_t *config, int argc, char *argv[])
ret = do_show (config, query, formatter, sprinter, ¶ms);
}
- DONE :
+ DONE:
g_mime_stream_flush (params.out_stream);
g_object_unref (params.out_stream);
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] notmuch-show: run uncrustify
2019-07-03 4:31 ` [PATCH v2] notmuch-show: run uncrustify Daniel Kahn Gillmor
@ 2019-07-05 15:58 ` David Bremner
0 siblings, 0 replies; 3+ messages in thread
From: David Bremner @ 2019-07-05 15:58 UTC (permalink / raw)
To: Daniel Kahn Gillmor, Notmuch Mail
Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:
> This is the result of running:
>
> $ uncrustify --replace --config devel/uncrustify.cfg *.c *.h
>
> In the top level source directory. I was using uncrustify
> 0.68.1+dfsg1-2.
>
> I do not know why these changes were not caught in
> 33382c2b5ba2537952a60ea378feff36961e4713
>
Dunno, but it was probably my fault since I recognize those lines as
part of my "cleanup".
pushed
d
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-10 15:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25 0:57 [PATCH] uncrustify: clean up whitespace in notmuch-show.c Daniel Kahn Gillmor
2019-07-03 4:31 ` [PATCH v2] notmuch-show: run uncrustify Daniel Kahn Gillmor
2019-07-05 15:58 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).