summaryrefslogtreecommitdiff
path: root/src/nm-checkpoint.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-03-28 07:08:54 +0200
committerThomas Haller <thaller@redhat.com>2018-04-04 14:02:13 +0200
commite5fc9a307d036fe814145a5100bb6bdf28216cc6 (patch)
tree49e9747d45992fc1d43f94ef4102e74ba2668f94 /src/nm-checkpoint.h
parent5fb65b7f96346f04051ebfedd1f6b6e202e727dd (diff)
downloadNetworkManager-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.h2
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);