mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 02:35:25 +00:00
all: replace non-leading tabs with spaces
We commonly only allow tabs at the beginning of a line, not afterwards. The reason for this style is so that the code looks formated right with tabstop=4 and tabstop=8.
This commit is contained in:
parent
ca7273b3e2
commit
e4839accf5
|
@ -74,8 +74,8 @@ static void _libnm_glib_update_state (libnm_glib_ctx *ctx, NMState state);
|
|||
static void
|
||||
_libnm_glib_nm_state_cb (DBusPendingCall *pcall, void *user_data)
|
||||
{
|
||||
DBusMessage * reply;
|
||||
libnm_glib_ctx * ctx = (libnm_glib_ctx *) user_data;
|
||||
DBusMessage *reply;
|
||||
libnm_glib_ctx *ctx = (libnm_glib_ctx *) user_data;
|
||||
NMState nm_state;
|
||||
|
||||
g_return_if_fail (pcall != NULL);
|
||||
|
@ -108,8 +108,8 @@ out:
|
|||
static void
|
||||
_libnm_glib_get_nm_state (libnm_glib_ctx *ctx)
|
||||
{
|
||||
DBusMessage * message;
|
||||
DBusPendingCall * pcall = NULL;
|
||||
DBusMessage *message;
|
||||
DBusPendingCall *pcall = NULL;
|
||||
|
||||
g_return_if_fail (ctx != NULL);
|
||||
|
||||
|
@ -393,7 +393,7 @@ _libnm_glib_schedule_dbus_watcher (libnm_glib_ctx *ctx)
|
|||
|
||||
if (ctx->dbus_watcher == 0)
|
||||
{
|
||||
GSource * source = g_timeout_source_new (ctx->dbus_watch_interval);
|
||||
GSource *source = g_timeout_source_new (ctx->dbus_watch_interval);
|
||||
g_source_set_callback (source, _libnm_glib_dbus_watcher, (gpointer) ctx, NULL);
|
||||
ctx->dbus_watcher = g_source_attach (source, ctx->g_main_ctx);
|
||||
g_source_unref (source);
|
||||
|
|
|
@ -55,7 +55,7 @@ struct EncodingTriplet
|
|||
|
||||
struct IsoLangToEncodings
|
||||
{
|
||||
const char * lang;
|
||||
const char *lang;
|
||||
struct EncodingTriplet encodings;
|
||||
};
|
||||
|
||||
|
@ -166,9 +166,9 @@ get_encodings_for_lang (const char *lang,
|
|||
char **encoding2,
|
||||
char **encoding3)
|
||||
{
|
||||
struct EncodingTriplet * encodings;
|
||||
struct EncodingTriplet *encodings;
|
||||
gboolean success = FALSE;
|
||||
char * tmp_lang;
|
||||
char *tmp_lang;
|
||||
|
||||
g_return_val_if_fail (lang != NULL, FALSE);
|
||||
g_return_val_if_fail (encoding1 != NULL, FALSE);
|
||||
|
|
|
@ -304,7 +304,7 @@ activate:
|
|||
&local_error)) {
|
||||
_LOGW ("rollback: reactivation of connection %s/%s failed: %s",
|
||||
nm_connection_get_id ((NMConnection *) connection),
|
||||
nm_connection_get_uuid ((NMConnection * ) connection),
|
||||
nm_connection_get_uuid ((NMConnection *) connection),
|
||||
local_error->message);
|
||||
g_clear_error (&local_error);
|
||||
result = NM_ROLLBACK_RESULT_ERR_FAILED;
|
||||
|
|
|
@ -222,9 +222,9 @@ validate_type_keyword (const struct Opt * opt,
|
|||
const char * value,
|
||||
const guint32 len)
|
||||
{
|
||||
char ** allowed;
|
||||
gchar ** candidates = NULL;
|
||||
char ** candidate;
|
||||
char **allowed;
|
||||
gchar **candidates = NULL;
|
||||
char **candidate;
|
||||
gboolean found = FALSE;
|
||||
|
||||
g_return_val_if_fail (opt != NULL, FALSE);
|
||||
|
|
Loading…
Reference in a new issue