diff options
author | Thomas Haller <thaller@redhat.com> | 2018-03-28 07:08:54 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-04-04 14:02:13 +0200 |
commit | e5fc9a307d036fe814145a5100bb6bdf28216cc6 (patch) | |
tree | 49e9747d45992fc1d43f94ef4102e74ba2668f94 /src/nm-checkpoint.h | |
parent | 5fb65b7f96346f04051ebfedd1f6b6e202e727dd (diff) | |
download | NetworkManager-e5fc9a307d036fe814145a5100bb6bdf28216cc6.tar.gz |
checkpoint: don't let nm_checkpoint_new() fail
We already do error checking in nm_checkpoint_manager_create(). No need
to split it in two places. Let all error conditions be handled by
nm_checkpoint_manager_create() first, and then once we decide all is
good, nm_checkpoint_new() can no longer fail.
Diffstat (limited to 'src/nm-checkpoint.h')
-rw-r--r-- | src/nm-checkpoint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-checkpoint.h b/src/nm-checkpoint.h index 59490322e3..49783ca533 100644 --- a/src/nm-checkpoint.h +++ b/src/nm-checkpoint.h @@ -48,7 +48,7 @@ typedef struct _NMCheckpointClass NMCheckpointClass; GType nm_checkpoint_get_type (void); NMCheckpoint *nm_checkpoint_new (NMManager *manager, GPtrArray *devices, guint32 rollback_timeout, - NMCheckpointCreateFlags flags, GError **error); + NMCheckpointCreateFlags flags); typedef void (*NMCheckpointTimeoutCallback) (NMCheckpoint *self, gpointer user_data); |